diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2009-07-19 04:26:19 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2009-08-24 13:30:03 +0200 |
| commit | 3a1380120d8c952a34f6b5db0b3c42f794770f51 (patch) | |
| tree | 5351a9e67100d16867e3efe9ae851e79b0f4d3c9 /libtcc.c | |
| parent | 834b782a9c998ef1eda981cde1106c77a7a291ae (diff) | |
| download | tinycc-3a1380120d8c952a34f6b5db0b3c42f794770f51.tar.gz tinycc-3a1380120d8c952a34f6b5db0b3c42f794770f51.tar.bz2 | |
x86-64: change the type of size_t and ptrdiff_t.
size_t and ptrdiff_t should be unsigned long and long, respectively.
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1892,8 +1892,8 @@ TCCState *tcc_new(void) tcc_define_symbol(s, "__TINYC__", NULL); /* tiny C & gcc defines */ - 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"); #ifdef TCC_TARGET_PE tcc_define_symbol(s, "__WCHAR_TYPE__", "unsigned short"); #else |
