c2hs
c2hs copied to clipboard
One more error with macos and time.h
While attempting to depend on the ncurses package, build fails with:
Configuring ncurses-0.2.16...
Preprocessing library for ncurses-0.2.16..
c2hs: C header contains errors:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/time.h:198: (column 23) [ERROR] >>> Syntax error !
The symbol `(' does not fit here.
time.h on line 198 looks like this:
__API_AVAILABLE(macosx(10.15), ios(13.0), tvos(13.0), watchos(6.0))
I haven't yet found the workaround that would work.
Same problem here. Could anyone point us to a fix/hint/issue please?
Really dirty workaround : remove that line, build and put it back...