1/*
2Copyright Rene Rivera 2008-2015
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_PGI_H
9#define BOOST_PREDEF_COMPILER_PGI_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/* tag::reference[]
15= `BOOST_COMP_PGI`
16
17http://en.wikipedia.org/wiki/The_Portland_Group[Portland Group C/{CPP}] compiler.
18
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
22
23| `+__PGI+` | {predef_detection}
24
25| `+__PGIC__+`, `+__PGIC_MINOR__+`, `+__PGIC_PATCHLEVEL__+` | V.R.P
26|===
27*/ // end::reference[]
28
29#define BOOST_COMP_PGI BOOST_VERSION_NUMBER_NOT_AVAILABLE
30
31#if defined(__PGI)
32# if !defined(BOOST_COMP_PGI_DETECTION) && (defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__))
33# define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER(__PGIC__,__PGIC_MINOR__,__PGIC_PATCHLEVEL__)
34# endif
35# if !defined(BOOST_COMP_PGI_DETECTION)
36# define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
37# endif
38#endif
39
40#ifdef BOOST_COMP_PGI_DETECTION
41# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
42# define BOOST_COMP_PGI_EMULATED BOOST_COMP_PGI_DETECTION
43# else
44# undef BOOST_COMP_PGI
45# define BOOST_COMP_PGI BOOST_COMP_PGI_DETECTION
46# endif
47# define BOOST_COMP_PGI_AVAILABLE
48# include <boost/predef/detail/comp_detected.h>
49#endif
50
51#define BOOST_COMP_PGI_NAME "Portland Group C/C++"
52
53#endif
54
55#include <boost/predef/detail/test.h>
56BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI,BOOST_COMP_PGI_NAME)
57
58#ifdef BOOST_COMP_PGI_EMULATED
59#include <boost/predef/detail/test.h>
60BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI_EMULATED,BOOST_COMP_PGI_NAME)
61#endif
62

source code of include/boost/predef/compiler/pgi.h