https://issues.dlang.org/show_bug.cgi?id=23702

Iain Buclaw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Iain Buclaw <[email protected]> ---
(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.

--

Reply via email to