diff options
| author | seyko <seyko2@gmail.com> | 2016-05-15 21:07:05 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-05-15 21:07:05 +0300 |
| commit | 9d679e391660e411d676b847ff4ce72beda60927 (patch) | |
| tree | f0d0baac3670b0a078b4c47129f132603c884d74 /libtcc.c | |
| parent | 7cfd21440b1b75c5ac78351ba02427983d1d20e6 (diff) | |
| download | tinycc-9d679e391660e411d676b847ff4ce72beda60927.tar.gz tinycc-9d679e391660e411d676b847ff4ce72beda60927.tar.bz2 | |
memory model macros __{L,}LP64__
a patch from tcc bugzilla.
From: Reuben Thomas
Date: Thu, 31 Jul 2014 13:50:13 +0100
Subject: [PATCH] libtcc.c: add memory model macros __{L,}LP64__
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1146,9 +1146,11 @@ LIBTCCAPI TCCState *tcc_new(void) #if defined TCC_TARGET_PE && defined TCC_TARGET_X86_64 tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long long"); tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long long"); + tcc_define_symbol(s, "__LLP64__", NULL); #else tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long"); tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long"); + tcc_define_symbol(s, "__LP64__", NULL); #endif #ifdef TCC_TARGET_PE |
