Mercurial > hg > tinycc
comparison tcc.c @ 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 | 8591acf8ce9f |
children | f5e9e8615e47 |
comparison
equal
deleted
inserted
replaced
541:9c9498a615ef | 542:eca8c8d45d55 |
---|---|
8833 #endif | 8833 #endif |
8834 #if defined(TCC_TARGET_ARM) | 8834 #if defined(TCC_TARGET_ARM) |
8835 tcc_define_symbol(s, "__ARM_ARCH_4__", NULL); | 8835 tcc_define_symbol(s, "__ARM_ARCH_4__", NULL); |
8836 tcc_define_symbol(s, "__arm_elf__", NULL); | 8836 tcc_define_symbol(s, "__arm_elf__", NULL); |
8837 tcc_define_symbol(s, "__arm_elf", NULL); | 8837 tcc_define_symbol(s, "__arm_elf", NULL); |
8838 tcc_define_symbol(s, "arm_elf", NULL); | 8838 //tcc_define_symbol(s, "arm_elf", NULL); |
8839 tcc_define_symbol(s, "__arm__", NULL); | 8839 tcc_define_symbol(s, "__arm__", NULL); |
8840 tcc_define_symbol(s, "__arm", NULL); | 8840 tcc_define_symbol(s, "__arm", NULL); |
8841 tcc_define_symbol(s, "arm", NULL); | 8841 //tcc_define_symbol(s, "arm", NULL); |
8842 tcc_define_symbol(s, "__APCS_32__", NULL); | 8842 tcc_define_symbol(s, "__APCS_32__", NULL); |
8843 #endif | 8843 #endif |
8844 #if defined(linux) | 8844 #if defined(__linux__) |
8845 tcc_define_symbol(s, "__linux__", NULL); | 8845 tcc_define_symbol(s, "__linux__", NULL); |
8846 tcc_define_symbol(s, "linux", NULL); | 8846 tcc_define_symbol(s, "__linux", NULL); |
8847 //tcc_define_symbol(s, "linux", NULL); | |
8847 #endif | 8848 #endif |
8848 /* tiny C specific defines */ | 8849 /* tiny C specific defines */ |
8849 tcc_define_symbol(s, "__TINYC__", NULL); | 8850 tcc_define_symbol(s, "__TINYC__", NULL); |
8850 | 8851 |
8851 /* tiny C & gcc defines */ | 8852 /* tiny C & gcc defines */ |