diff options
| author | Christian Jullien <jullien@coltrane.eligis.com> | 2016-09-26 06:41:31 +0200 |
|---|---|---|
| committer | Christian Jullien <jullien@coltrane.eligis.com> | 2016-09-26 06:41:31 +0200 |
| commit | 30238b1ebdef35ea2840f4180387d488ae2daa9c (patch) | |
| tree | 02521d6fab1199107c67fce1ebddbc2be94b9e84 /libtcc.c | |
| parent | e38f49e32acfbf2217e65c51a1520eb90ad5ba71 (diff) | |
| download | tinycc-30238b1ebdef35ea2840f4180387d488ae2daa9c.tar.gz tinycc-30238b1ebdef35ea2840f4180387d488ae2daa9c.tar.bz2 | |
Add Microsoft processor identification
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |
