[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking for POSIX&Co



Christian Reiniger wrote:

> A---------
> #include <stdio.h>
>
> int main (void)
> {
>         printf ("Hello - always\n");
> #if defined (__POSIX__)
>         printf ("Hello - POSIX\n");
> #endif
>         return 0;
> }
> ---------
>
> The "Hello - POSIX" string is *not* printed by the resulting executable.
>
> Can you please check this?

I got the same result, and the same for __LINUX__.

Does anyone know what is going on?