aboutsummaryrefslogtreecommitdiff
path: root/lib/libtcc1.c
diff options
context:
space:
mode:
authorJames Lyon <jamesly0n@hotmail.com>2013-04-25 01:08:18 +0100
committerJames Lyon <jamesly0n@hotmail.com>2013-04-25 01:08:18 +0100
commite7a7efed11792e0dbc14a66b02fa7b25886f69d8 (patch)
treea8ac98cdc31dc8f15cff22b46b2a9799183bd8e5 /lib/libtcc1.c
parent5c35ba66c5ade4713bbd9c005e66889f6d7db293 (diff)
downloadtinycc-e7a7efed11792e0dbc14a66b02fa7b25886f69d8.tar.gz
tinycc-e7a7efed11792e0dbc14a66b02fa7b25886f69d8.tar.bz2
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.
Diffstat (limited to 'lib/libtcc1.c')
-rw-r--r--lib/libtcc1.c10
1 files changed, 3 insertions, 7 deletions
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 <stdlib.h>
-#ifndef __TINYC__
-/* gives "incompatible types for redefinition of __va_arg" below */
-#include <stdio.h>
-#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