Chris@16: /* Chris@101: Copyright Rene Rivera 2008-2013 Chris@16: Distributed under the Boost Software License, Version 1.0. Chris@16: (See accompanying file LICENSE_1_0.txt or copy at Chris@16: http://www.boost.org/LICENSE_1_0.txt) Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_PREDEF_ARCHITECTURE_PPC_H Chris@16: #define BOOST_PREDEF_ARCHITECTURE_PPC_H Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: /*` Chris@16: [heading `BOOST_ARCH_PPC`] Chris@16: Chris@16: [@http://en.wikipedia.org/wiki/PowerPC PowerPC] architecture. Chris@16: Chris@16: [table Chris@16: [[__predef_symbol__] [__predef_version__]] Chris@16: Chris@16: [[`__powerpc`] [__predef_detection__]] Chris@16: [[`__powerpc__`] [__predef_detection__]] Chris@16: [[`__POWERPC__`] [__predef_detection__]] Chris@16: [[`__ppc__`] [__predef_detection__]] Chris@16: [[`_M_PPC`] [__predef_detection__]] Chris@16: [[`_ARCH_PPC`] [__predef_detection__]] Chris@16: [[`__PPCGECKO__`] [__predef_detection__]] Chris@16: [[`__PPCBROADWAY__`] [__predef_detection__]] Chris@16: [[`_XENON`] [__predef_detection__]] Chris@16: Chris@16: [[`__ppc601__`] [6.1.0]] Chris@16: [[`_ARCH_601`] [6.1.0]] Chris@16: [[`__ppc603__`] [6.3.0]] Chris@16: [[`_ARCH_603`] [6.3.0]] Chris@16: [[`__ppc604__`] [6.4.0]] Chris@16: [[`__ppc604__`] [6.4.0]] Chris@16: ] Chris@16: */ Chris@16: Chris@16: #define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE Chris@16: Chris@16: #if defined(__powerpc) || defined(__powerpc__) || \ Chris@16: defined(__POWERPC__) || defined(__ppc__) || \ Chris@16: defined(_M_PPC) || defined(_ARCH_PPC) || \ Chris@16: defined(__PPCGECKO__) || defined(__PPCBROADWAY__) || \ Chris@16: defined(_XENON) Chris@16: # undef BOOST_ARCH_PPC Chris@16: # if !defined (BOOST_ARCH_PPC) && (defined(__ppc601__) || defined(_ARCH_601)) Chris@16: # define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,1,0) Chris@16: # endif Chris@16: # if !defined (BOOST_ARCH_PPC) && (defined(__ppc603__) || defined(_ARCH_603)) Chris@16: # define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,3,0) Chris@16: # endif Chris@16: # if !defined (BOOST_ARCH_PPC) && (defined(__ppc604__) || defined(__ppc604__)) Chris@16: # define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,4,0) Chris@16: # endif Chris@16: # if !defined (BOOST_ARCH_PPC) Chris@16: # define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_AVAILABLE Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: #if BOOST_ARCH_PPC Chris@16: # define BOOST_ARCH_PPC_AVAILABLE Chris@16: #endif Chris@16: Chris@16: #define BOOST_ARCH_PPC_NAME "PowerPC" Chris@16: Chris@16: #include Chris@16: BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PPC,BOOST_ARCH_PPC_NAME) Chris@16: Chris@16: Chris@16: #endif