History

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__

seyko committed 10 years ago

Commit 9d679e31 parent 7cfd2141 file · +2 −0Browse files

Unified · Split

libtcc.c+2−0
@@ -1146,9 +1146,11 @@ LIBTCCAPI TCCState *tcc_new(void) · 1145 unmodified lines
11461146 #if defined TCC_TARGET_PE && defined TCC_TARGET_X86_64
11471147 tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long long");
11481148 tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long long");
1149+ tcc_define_symbol(s, "__LLP64__", NULL);
11491150 #else
11501151 tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long");
11511152 tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long");
1153+ tcc_define_symbol(s, "__LP64__", NULL);
11521154 #endif
11531155
11541156 #ifdef TCC_TARGET_PE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t