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
1122 tcc_define_symbol(s, "_WIN32", NULL);1122 tcc_define_symbol(s, "_WIN32", NULL);
1123# ifdef TCC_TARGET_X86_641123# ifdef TCC_TARGET_X86_64
1124 tcc_define_symbol(s, "_WIN64", NULL);1124 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");
1125# endif1131# endif
1126#else1132#else
1127 tcc_define_symbol(s, "__unix__", NULL);1133 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