forked from boostorg/predef
git-svn-id: http://svn.boost.org/svn/boost/sandbox/predef@75760 b8fc166d-592f-0410-95f2-cb63ce0dd405
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/*
|
|
Copyright Redshift Software, Inc. 2008-2011
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE_1_0.txt or copy at
|
|
http://www.boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#ifndef BOOST_PREDEF_ARCHITECTURE_ALPHA_H
|
|
#define BOOST_PREDEF_ARCHITECTURE_ALPHA_H
|
|
|
|
#include <boost/predef/version_number.h>
|
|
#include <boost/predef/make.h>
|
|
|
|
/*`
|
|
[heading `BOOST_ARCHITECTURE_ALPHA`]
|
|
|
|
[@http://en.wikipedia.org/wiki/DEC_Alpha DEC Alpha] architecture:
|
|
If available versions \[4-6\] are specifically detected.
|
|
*/
|
|
|
|
#define BOOST_ARCHITECTURE_ALPHA BOOST_VERSION_NUMBER(0,0,0)
|
|
|
|
#if defined(__alpha__) || defined(__alpha) || \
|
|
defined(_M_ALPHA)
|
|
#undef BOOST_ARCHITECTURE_ALPHA
|
|
#if defined(__alpha_ev4__)
|
|
#define BOOST_ARCHITECTURE_ALPHA BOOST_VERSION_NUMBER(4,0,0)
|
|
#elif defined(__alpha_ev5__)
|
|
#define BOOST_ARCHITECTURE_ALPHA BOOST_VERSION_NUMBER(5,0,0)
|
|
#elif defined(__alpha_ev6__)
|
|
#define BOOST_ARCHITECTURE_ALPHA BOOST_VERSION_NUMBER(6,0,0)
|
|
#else
|
|
#define BOOST_ARCHITECTURE_ALPHA BOOST_VERSION_NUMBER(0,0,1)
|
|
#endif
|
|
#endif
|
|
|
|
#include <boost/predef/detail/test.h>
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCHITECTURE_ALPHA,"DEC Alpha")
|
|
|
|
#endif
|