summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-13 05:29:39 +0000
committermidipix <writeonce@midipix.org>2016-12-13 10:31:14 -0500
commit32f3d4c1f563f26a3bdae992be714c1351d425c0 (patch)
tree7e9e405204f636396daa808a9029ef7114da2f8c /include
parentc27e28f396cc0f40d1dbfc9b13996d100563c14a (diff)
downloadpsxtypes-32f3d4c1f563f26a3bdae992be714c1351d425c0.tar.bz2
psxtypes-32f3d4c1f563f26a3bdae992be714c1351d425c0.tar.xz
visual studio support: properly wrap the test for x86 built-in defines.
Diffstat (limited to 'include')
-rw-r--r--include/psxtypes/compiler/__nt_compiler_msvc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/psxtypes/compiler/__nt_compiler_msvc.h b/include/psxtypes/compiler/__nt_compiler_msvc.h
index 47aca32..b3b3b8d 100644
--- a/include/psxtypes/compiler/__nt_compiler_msvc.h
+++ b/include/psxtypes/compiler/__nt_compiler_msvc.h
@@ -16,6 +16,8 @@
/* x86 processor model */
+#ifdef _M_IX86
+
#if (_M_IX86 == 900)
#define __X86_MODEL 986
#elif (_M_IX86 == 800)
@@ -32,6 +34,7 @@
#define __X86_MODEL 386
#endif
+#endif
/* x86_64 processor model */
#if defined(_M_AMD64)