1/*
2Copyright Rene Rivera 2008-2014
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_COMPILER_GREENHILLS_H
9#define BOOST_PREDEF_COMPILER_GREENHILLS_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/*`
15[heading `BOOST_COMP_GHS`]
16
17[@http://en.wikipedia.org/wiki/Green_Hills_Software Green Hills C/C++] compiler.
18Version number available as major, minor, and patch.
19
20[table
21 [[__predef_symbol__] [__predef_version__]]
22
23 [[`__ghs`] [__predef_detection__]]
24 [[`__ghs__`] [__predef_detection__]]
25
26 [[`__GHS_VERSION_NUMBER__`] [V.R.P]]
27 [[`__ghs`] [V.R.P]]
28 ]
29 */
30
31#define BOOST_COMP_GHS BOOST_VERSION_NUMBER_NOT_AVAILABLE
32
33#if defined(__ghs) || defined(__ghs__)
34# if !defined(BOOST_COMP_GHS_DETECTION) && defined(__GHS_VERSION_NUMBER__)
35# define BOOST_COMP_GHS_DETECTION BOOST_PREDEF_MAKE_10_VRP(__GHS_VERSION_NUMBER__)
36# endif
37# if !defined(BOOST_COMP_GHS_DETECTION) && defined(__ghs)
38# define BOOST_COMP_GHS_DETECTION BOOST_PREDEF_MAKE_10_VRP(__ghs)
39# endif
40# if !defined(BOOST_COMP_GHS_DETECTION)
41# define BOOST_COMP_GHS_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
42# endif
43#endif
44
45#ifdef BOOST_COMP_GHS_DETECTION
46# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
47# define BOOST_COMP_GHS_EMULATED BOOST_COMP_GHS_DETECTION
48# else
49# undef BOOST_COMP_GHS
50# define BOOST_COMP_GHS BOOST_COMP_GHS_DETECTION
51# endif
52# define BOOST_COMP_GHS_AVAILABLE
53# include <boost/predef/detail/comp_detected.h>
54#endif
55
56#define BOOST_COMP_GHS_NAME "Green Hills C/C++"
57
58#include <boost/predef/detail/test.h>
59BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GHS,BOOST_COMP_GHS_NAME)
60
61#ifdef BOOST_COMP_GHS_EMULATED
62#include <boost/predef/detail/test.h>
63BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GHS_EMULATED,BOOST_COMP_GHS_NAME)
64#endif
65
66
67#endif
68