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_LIBRARY_STD_STLPORT_H
9#define BOOST_PREDEF_LIBRARY_STD_STLPORT_H
10
11#include <boost/predef/library/std/_prefix.h>
12
13#include <boost/predef/version_number.h>
14#include <boost/predef/make.h>
15
16/* tag::reference[]
17= `BOOST_LIB_STD_STLPORT`
18
19http://sourceforge.net/projects/stlport/[STLport Standard {CPP}] library.
20Version number available as major, minor, and patch.
21
22[options="header"]
23|===
24| {predef_symbol} | {predef_version}
25
26| `+__SGI_STL_PORT+` | {predef_detection}
27| `+_STLPORT_VERSION+` | {predef_detection}
28
29| `+_STLPORT_MAJOR+`, `+_STLPORT_MINOR+`, `+_STLPORT_PATCHLEVEL+` | V.R.P
30| `+_STLPORT_VERSION+` | V.R.P
31| `+__SGI_STL_PORT+` | V.R.P
32|===
33*/ // end::reference[]
34
35#define BOOST_LIB_STD_STLPORT BOOST_VERSION_NUMBER_NOT_AVAILABLE
36
37#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
38# undef BOOST_LIB_STD_STLPORT
39# if !defined(BOOST_LIB_STD_STLPORT) && defined(_STLPORT_MAJOR)
40# define BOOST_LIB_STD_STLPORT \
41 BOOST_VERSION_NUMBER(_STLPORT_MAJOR,_STLPORT_MINOR,_STLPORT_PATCHLEVEL)
42# endif
43# if !defined(BOOST_LIB_STD_STLPORT) && defined(_STLPORT_VERSION)
44# define BOOST_LIB_STD_STLPORT BOOST_PREDEF_MAKE_0X_VRP(_STLPORT_VERSION)
45# endif
46# if !defined(BOOST_LIB_STD_STLPORT)
47# define BOOST_LIB_STD_STLPORT BOOST_PREDEF_MAKE_0X_VRP(__SGI_STL_PORT)
48# endif
49#endif
50
51#if BOOST_LIB_STD_STLPORT
52# define BOOST_LIB_STD_STLPORT_AVAILABLE
53#endif
54
55#define BOOST_LIB_STD_STLPORT_NAME "STLport"
56
57#endif
58
59#include <boost/predef/detail/test.h>
60BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_STLPORT,BOOST_LIB_STD_STLPORT_NAME)
61

source code of include/boost/predef/library/std/stlport.h