Is `__GNUC__` defined in dmd when using importC?
Dejan Lekic
dejan.lekic at gmail.com
Fri Oct 10 12:41:29 UTC 2025
On Friday, 10 October 2025 at 10:06:39 UTC, felixfxu wrote:
> But that introduce another question: dmd is not a complete gcc
> replacement I guess, but in the headers, all `#ifdef __GNUC__`
What made you think DMD is a replacement for a C compiler?
Perhaps you are confusing importC with betterC? ImportC is there
to help D developers easily interface with C libraries (so you do
not have to write your own bindings). betterC is an abomination
that may be interesting to some people but I suggest you avoid it.
More information about the Digitalmars-d-learn
mailing list