Add Microsoft processor identification
This commit is contained in:
parent
e38f49e32a
commit
30238b1ebd
1 changed files with 6 additions and 0 deletions
6
libtcc.c
6
libtcc.c
|
@ -1122,6 +1122,12 @@ LIBTCCAPI TCCState *tcc_new(void)
|
|||
tcc_define_symbol(s, "_WIN32", NULL);
|
||||
# ifdef TCC_TARGET_X86_64
|
||||
tcc_define_symbol(s, "_WIN64", NULL);
|
||||
/* Those are defined by Visual Studio */
|
||||
tcc_define_symbol(s, "_M_X64", "100");
|
||||
tcc_define_symbol(s, "_M_AMD64", "100");
|
||||
# else
|
||||
/* Defined by Visual Studio. 300 == 80386. */
|
||||
tcc_define_symbol(s, "_M_IX86", "300");
|
||||
# endif
|
||||
#else
|
||||
tcc_define_symbol(s, "__unix__", NULL);
|
||||
|
|
Loading…
Reference in a new issue