Define __ARM_EABI__ and __ARMEL__ when applicable

This commit is contained in:
Thomas Preud'homme 2013-11-26 12:06:21 +08:00
parent 5919da6f05
commit 3676f61983

View File

@ -942,10 +942,14 @@ LIBTCCAPI TCCState *tcc_new(void)
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); tcc_define_symbol(s, "__APCS_32__", NULL);
tcc_define_symbol(s, "__ARMEL__", NULL);
#if defined(TCC_ARM_EABI)
tcc_define_symbol(s, "__ARM_EABI__", NULL);
#if defined(TCC_ARM_HARDFLOAT) #if defined(TCC_ARM_HARDFLOAT)
tcc_define_symbol(s, "__ARM_PCS_VFP", NULL); tcc_define_symbol(s, "__ARM_PCS_VFP", NULL);
#endif #endif
#endif #endif
#endif
#ifdef TCC_TARGET_PE #ifdef TCC_TARGET_PE
tcc_define_symbol(s, "_WIN32", NULL); tcc_define_symbol(s, "_WIN32", NULL);