-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
portability: fix problems compiling with C++ compiler
Michael McConville suggested removing a "redundant" cast of the return value from malloc(), based on a change in the OpenBSD version of unifdef. This is a good suggestion for a purely C program, but the cast is required in C++. Carsten Hey contributed some portability improvements in 2012 which included this cast, so that unifdef can be compiled with a C++ compiler. Unfortunately since then there have been several regressions in C++ support. This commit fixes those regressions.
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters