forked from Mirrors/tinycc
define __SIZE_TYPE__ and __PTRDIFF_TYPE__ as unsigned int and int.
As long is now a qualifier, and because compare_type will notice that variables are not the same type, we can't use long as int anymore. So, I've redefine __SIZE_TYPE__ as unsigned int and __PTRDIFF_TYPE__ as int.master
parent
b72cddaa6e
commit
28b7c9b34e
4
libtcc.c
4
libtcc.c
|
@ -848,8 +848,8 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||||
tcc_define_symbol(s, "__LP64__", NULL);
|
tcc_define_symbol(s, "__LP64__", NULL);
|
||||||
#else
|
#else
|
||||||
/* Other 32bit systems. */
|
/* Other 32bit systems. */
|
||||||
tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long");
|
tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned int");
|
||||||
tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long");
|
tcc_define_symbol(s, "__PTRDIFF_TYPE__", "int");
|
||||||
tcc_define_symbol(s, "__ILP32__", NULL);
|
tcc_define_symbol(s, "__ILP32__", NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue