ADDED build/tcc-patches/0.9.26/tcc-0.9.26-extradefines.diff Index: build/tcc-patches/0.9.26/tcc-0.9.26-extradefines.diff ================================================================== --- build/tcc-patches/0.9.26/tcc-0.9.26-extradefines.diff +++ build/tcc-patches/0.9.26/tcc-0.9.26-extradefines.diff @@ -0,0 +1,13 @@ +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 */ Index: test.tcl ================================================================== --- test.tcl +++ test.tcl @@ -115,11 +115,14 @@ file delete $tmpfile } # More involved test set handle [tcc4tcl::new] -$handle ccode {#include } +$handle ccode { +#include +#include +} $handle cwrap curl_version {} vstring $handle cproc curl_fetch {char* url} ok { void *handle; handle = curl_easy_init();