added code for hardware platform detection (__INTEL__, __POWERPC__, ... which were not set correctly before); added __IA64__

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-01-16 14:01:44 +00:00
parent a6966de150
commit 748a468469
2 changed files with 30 additions and 0 deletions

View 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}

View File

@ -223,6 +223,35 @@
# 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