Open
Description
Getting this error on macOS, trying to use corrode with a signal.h inclusion.
/usr/include/signal.h:79: (column 19) [ERROR] >>> Syntax Error !
Syntax error !
The symbol `bsd_signal' does not fit here.
this is the line in that header:
void (* _Nullable bsd_signal(int, void (* _Nullable)(int)))(int);
That's wrapped in a #ifndef _ANSI_SOURCE
so, passing -D__DARWIN_C_LEVEL=200112
is a workaround for this. This setting seems to be the max for the system, that probably raises the minimum macOS version for targets.
Perhaps instead of a bug, what is needed is a standard definition of compiler flags for macOS?
Metadata
Metadata
Assignees
Labels
No labels