changeset 542:eca8c8d45d55

Don't pollute the namespace with built-in symbols that don't start with __.
author Rob Landley <rob@landley.net>
date Fri, 14 Dec 2007 19:35:54 -0600
parents 9c9498a615ef
children f5e9e8615e47
files tcc.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tcc.c	Thu Dec 13 05:40:46 2007 -0600
+++ b/tcc.c	Fri Dec 14 19:35:54 2007 -0600
@@ -8835,15 +8835,16 @@
     tcc_define_symbol(s, "__ARM_ARCH_4__", NULL);
     tcc_define_symbol(s, "__arm_elf__", NULL);
     tcc_define_symbol(s, "__arm_elf", NULL);
-    tcc_define_symbol(s, "arm_elf", NULL);
+    //tcc_define_symbol(s, "arm_elf", NULL);
     tcc_define_symbol(s, "__arm__", NULL);
     tcc_define_symbol(s, "__arm", NULL);
-    tcc_define_symbol(s, "arm", NULL);
+    //tcc_define_symbol(s, "arm", NULL);
     tcc_define_symbol(s, "__APCS_32__", NULL);
 #endif
-#if defined(linux)
+#if defined(__linux__)
     tcc_define_symbol(s, "__linux__", NULL);
-    tcc_define_symbol(s, "linux", NULL);
+    tcc_define_symbol(s, "__linux", NULL);
+    //tcc_define_symbol(s, "linux", NULL);
 #endif
     /* tiny C specific defines */
     tcc_define_symbol(s, "__TINYC__", NULL);