]> git.saurik.com Git - wxWidgets.git/commitdiff
added code for hardware platform detection (__INTEL__, __POWERPC__, ... which were...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jan 2005 14:01:44 +0000 (14:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jan 2005 14:01:44 +0000 (14:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/cppconst.tex
include/wx/platform.h

index 263a443b5efa3eeecf18cdfa64fdc807cefecfcf..b3f0fbe71185691bf0988409abda73ba9309473c 100644 (file)
@@ -104,6 +104,7 @@ compiler used.
 \begin{twocollist}\itemsep=0pt
 \twocolitem{\_\_ALPHA\_\_}{DEC Alpha architecture}
 \twocolitem{\_\_INTEL\_\_}{Intel i386 or compatible}
+\twocolitem{\_\_IA64\_\_}{Intel 64 bit architecture}
 \twocolitem{\_\_POWERPC\_\_}{Motorola Power PC}
 \end{twocollist}
 
index bd30bf68f22f2e8f2e05e67c24c7d083c7d9ba51..7d82a9cef5d9d6b49ae24cc694f070aba7cc85fb 100644 (file)
 #   endif
 #endif
 
+/*
+   Hardware platform detection.
+
+   VC++ defines _M_xxx symbols.
+ */
+#if defined(_M_IX86) || defined(i386) || defined(__i386) || defined(__i386__)
+    #ifndef __INTEL__
+        #define __INTEL__
+    #endif
+#endif /* x86 */
+
+#if defined(_M_IA64)
+    #ifndef __IA64__
+        #define __IA64__
+    #endif
+#endif /* ia64 */
+
+#if defined(_M_MPPC) || defined(__PPC__)
+    #ifndef __POWERPC__
+        #define __POWERPC__
+    #endif
+#endif /* alpha */
+
+#if defined(_M_ALPHA) || defined(__AXP__)
+    #ifndef __ALPHA__
+        #define __ALPHA__
+    #endif
+#endif /* alpha */
+
 /*
    Include wx/setup.h for the Unix platform defines generated by configure and
    the library compilation options