3 ms·
> C’s portability is a joke between #ifdefs and #endif. Ironically, I just spent a couple days trying to get the C11 Standard .h files on various platforms to
by WalterBright 4y ago
> C’s portability is a joke between #ifdefs and #endif.
Ironically, I just spent a couple days trying to get the C11 Standard .h files on various platforms to compile with ImportC (D's C11 C code importer). Every single platform D supports fails to have a way to compile their .h files using a Standard C11 compiler, each in its own unique, peculiar ways. They all rely on their own C compiler extensions.
Some make an attempt with #ifdef/#ifndef to be portable, but they all fail.