tcc-0.9.26-extradefines.diff at [a88c66196a]

File build/tcc-patches/0.9.26/tcc-0.9.26-extradefines.diff artifact e92b8040bc part of check-in a88c66196a


diff -uNr tcc-0.9.26.orig/libtcc.c tcc-0.9.26-1extradefines/libtcc.c
--- tcc-0.9.26.orig/libtcc.c	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1extradefines/libtcc.c	2014-06-23 15:00:38.479507000 -0500
@@ -980,6 +980,9 @@
 #else
     tcc_define_symbol(s, "__WCHAR_TYPE__", "int");
 #endif
+#ifdef __LP64__
+    tcc_define_symbol(s, "__LP64__", "1");
+#endif
 
 #ifndef TCC_TARGET_PE
     /* glibc defines */