From e7a7efed11792e0dbc14a66b02fa7b25886f69d8 Mon Sep 17 00:00:00 2001 From: James Lyon Date: Thu, 25 Apr 2013 01:08:18 +0100 Subject: Added cross compilation to CMake build system. Brings it more into line with make based system. I've tested on 32- and 64-bit Windows, but not yet Linux. --- lib/libtcc1.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib/libtcc1.c') diff --git a/lib/libtcc1.c b/lib/libtcc1.c index bfe683b..1f246be 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -607,13 +607,9 @@ unsigned long long __fixunsxfdi (long double a1) #if defined(__x86_64__) && !defined(_WIN64) -/* helper functions for stdarg.h */ - -#include -#ifndef __TINYC__ -/* gives "incompatible types for redefinition of __va_arg" below */ -#include -#endif +/* Avoid including stdlib.h because it is not easily available when + cross compiling */ +extern void *malloc(unsigned long long); enum __va_arg_type { __va_gen_reg, __va_float_reg, __va_stack -- cgit v1.3.1