[Issue 23702] compilable/test23616.c:3:20: error: missing binary operator before token "("
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 16 19:03:58 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23702
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #1)
> Shouldn't the C preprocessor remove the #if line? and the #endif line?
It's the C preprocessor that's rejecting it. I don't know why dmd compiles
this, but gcc doesn't.
If you know, then it should be documented on the importc page here
https://dlang.org/spec/importc.html#extensions
Though I suspect maybe under predefined macros would be more appropriate.
--
More information about the Digitalmars-d-bugs
mailing list