History

Add Microsoft processor identification

Christian Jullien committed 10 years ago

Commit 30238b11 parent e38f49e1 file · +6 −0Browse files

Unified · Split

libtcc.c+6−0
@@ -1122,6 +1122,12 @@ LIBTCCAPI TCCState *tcc_new(void) · 1121 unmodified lines
11221122 tcc_define_symbol(s, "_WIN32", NULL);
11231123 # ifdef TCC_TARGET_X86_64
11241124 tcc_define_symbol(s, "_WIN64", NULL);
1125+ /* Those are defined by Visual Studio */
1126+ tcc_define_symbol(s, "_M_X64", "100");
1127+ tcc_define_symbol(s, "_M_AMD64", "100");
1128+# else
1129+ /* Defined by Visual Studio. 300 == 80386. */
1130+ tcc_define_symbol(s, "_M_IX86", "300");
11251131 # endif
11261132 #else
11271133 tcc_define_symbol(s, "__unix__", NULL);

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