a patch from tcc bugzilla. From: Reuben Thomas Date: Thu, 31 Jul 2014 13:50:13 +0100 Subject: [PATCH] libtcc.c: add memory model macros __{L,}LP64__
Unified · Split
| @@ -1146,9 +1146,11 @@ LIBTCCAPI TCCState *tcc_new(void) · 1145 unmodified lines | |||
| 1146 | #if defined TCC_TARGET_PE && defined TCC_TARGET_X86_64 | 1146 | #if defined TCC_TARGET_PE && defined TCC_TARGET_X86_64 |
| 1147 | tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long long"); | 1147 | tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long long"); |
| 1148 | tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long long"); | 1148 | tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long long"); |
| 1149 | tcc_define_symbol(s, "__LLP64__", NULL); | ||
| 1149 | #else | 1150 | #else |
| 1150 | tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long"); | 1151 | tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long"); |
| 1151 | tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long"); | 1152 | tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long"); |
| 1153 | tcc_define_symbol(s, "__LP64__", NULL); | ||
| 1152 | #endif | 1154 | #endif |
| 1153 | 1155 | ||
| 1154 | #ifdef TCC_TARGET_PE | 1156 | #ifdef TCC_TARGET_PE |