Index: tcc.c =================================================================== RCS file: /sources/tinycc/tinycc/tcc.c,v retrieving revision 1.190 diff -u -r1.190 tcc.c --- tcc.c 13 Dec 2007 19:07:20 -0000 1.190 +++ tcc.c 13 Dec 2007 23:02:39 -0000 @@ -10013,9 +10013,15 @@ tcc_define_symbol(s, "arm", NULL); tcc_define_symbol(s, "__APCS_32__", NULL); #endif -#if defined(linux) + + /* target OS */ +#ifndef TCC_TARGET_PE + tcc_define_symbol(s, "__unix__", NULL); + tcc_define_symbol(s, "__unix", NULL); +#if defined(__linux) tcc_define_symbol(s, "__linux__", NULL); - tcc_define_symbol(s, "linux", NULL); + tcc_define_symbol(s, "__linux", NULL); +#endif #endif /* tiny C specific defines */ tcc_define_symbol(s, "__TINYC__", NULL);