Project

General

Profile

Bug #4214 » predefs.c

jonforums (Jon Forums), 12/28/2010 11:31 PM

 
/* build with:
* gcc -o predefs.exe predefs.c
* -or-
* cl predefs.c
*/
#include <stdio.h>

void main(void)
{
#if defined(__WIN32__)
printf("__WIN32__ defined\n");
#endif
#if defined(_WIN32)
printf("_WIN32 defined\n");
#endif
#if defined(__MINGW32__)
printf("__MINGW32__ defined\n");
#endif
}
(2-2/3)