From 52622c3c0365ad497ce1188e433ac5f0a721c283 Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Tue, 25 Jul 2017 18:56:06 +0200 Subject: use int for ssize_t, (u)intptr_t instead of long in stddef.h --- libtcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 6a5e452..ec81992 100644 --- a/libtcc.c +++ b/libtcc.c @@ -848,8 +848,8 @@ LIBTCCAPI TCCState *tcc_new(void) tcc_define_symbol(s, "__LP64__", NULL); #else /* Other 32bit systems. */ - tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned int"); - tcc_define_symbol(s, "__PTRDIFF_TYPE__", "int"); + tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long"); + tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long"); tcc_define_symbol(s, "__ILP32__", NULL); #endif -- cgit v1.3.1