From 9d679e391660e411d676b847ff4ce72beda60927 Mon Sep 17 00:00:00 2001 From: seyko Date: Sun, 15 May 2016 21:07:05 +0300 Subject: [PATCH] memory model macros __{L,}LP64__ 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__ --- libtcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtcc.c b/libtcc.c index d63b86f..b0fcdf9 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1146,9 +1146,11 @@ LIBTCCAPI TCCState *tcc_new(void) #if defined TCC_TARGET_PE && defined TCC_TARGET_X86_64 tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long long"); tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long long"); + tcc_define_symbol(s, "__LLP64__", NULL); #else tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long"); tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long"); + tcc_define_symbol(s, "__LP64__", NULL); #endif #ifdef TCC_TARGET_PE