1/*
2Copyright Rene Rivera 2012-2013
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_OS_BSD_FREE_H
9#define BOOST_PREDEF_OS_BSD_FREE_H
10
11#include <boost/predef/os/bsd.h>
12
13/*`
14[heading `BOOST_OS_BSD_FREE`]
15
16[@http://en.wikipedia.org/wiki/Freebsd FreeBSD] operating system.
17
18[table
19 [[__predef_symbol__] [__predef_version__]]
20
21 [[`__FreeBSD__`] [__predef_detection__]]
22
23 [[`__FreeBSD_version`] [V.R.P]]
24 ]
25 */
26
27#define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_NOT_AVAILABLE
28
29#if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
30 defined(__FreeBSD__) \
31 )
32# ifndef BOOST_OS_BSD_AVAILABLE
33# define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
34# define BOOST_OS_BSD_AVAILABLE
35# endif
36# undef BOOST_OS_BSD_FREE
37# if defined(__FreeBSD_version)
38# if __FreeBSD_version < 500000
39# define BOOST_OS_BSD_FREE \
40 BOOST_PREDEF_MAKE_10_VRP000(__FreeBSD_version)
41# else
42# define BOOST_OS_BSD_FREE \
43 BOOST_PREDEF_MAKE_10_VRR000(__FreeBSD_version)
44# endif
45# else
46# define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_AVAILABLE
47# endif
48#endif
49
50#if BOOST_OS_BSD_FREE
51# define BOOST_OS_BSD_FREE_AVAILABLE
52# include <boost/predef/detail/os_detected.h>
53#endif
54
55#define BOOST_OS_BSD_FREE_NAME "Free BSD"
56
57#include <boost/predef/detail/test.h>
58BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_FREE,BOOST_OS_BSD_FREE_NAME)
59
60#endif
61