bsd.h
Go to the documentation of this file.
00001 /*
00002 Copyright Rene Rivera 2008-2015
00003 Distributed under the Boost Software License, Version 1.0.
00004 (See accompanying file LICENSE_1_0.txt or copy at
00005 http://www.boost.org/LICENSE_1_0.txt)
00006 */
00007 
00008 #ifndef BOOST_PREDEF_OS_BSD_H
00009 #define BOOST_PREDEF_OS_BSD_H
00010 
00011 /* Special case: OSX will define BSD predefs if the sys/param.h
00012  * header is included. We can guard against that, but only if we
00013  * detect OSX first. Hence we will force include OSX detection
00014  * before doing any BSD detection.
00015  */
00016 #include <boost/predef/os/macos.h>
00017 
00018 #include <boost/predef/version_number.h>
00019 #include <boost/predef/make.h>
00020 
00021 /*`
00022 [heading `BOOST_OS_BSD`]
00023 
00024 [@http://en.wikipedia.org/wiki/Berkeley_Software_Distribution BSD] operating system.
00025 
00026 BSD has various branch operating systems possible and each detected
00027 individually. This detects the following variations and sets a specific
00028 version number macro to match:
00029 
00030 * `BOOST_OS_BSD_DRAGONFLY` [@http://en.wikipedia.org/wiki/DragonFly_BSD DragonFly BSD]
00031 * `BOOST_OS_BSD_FREE` [@http://en.wikipedia.org/wiki/Freebsd FreeBSD]
00032 * `BOOST_OS_BSD_BSDI` [@http://en.wikipedia.org/wiki/BSD/OS BSDi BSD/OS]
00033 * `BOOST_OS_BSD_NET` [@http://en.wikipedia.org/wiki/Netbsd NetBSD]
00034 * `BOOST_OS_BSD_OPEN` [@http://en.wikipedia.org/wiki/Openbsd OpenBSD]
00035 
00036 [note The general `BOOST_OS_BSD` is set in all cases to indicate some form
00037 of BSD. If the above variants is detected the corresponding macro is also set.]
00038 
00039 [table
00040     [[__predef_symbol__] [__predef_version__]]
00041 
00042     [[`BSD`] [__predef_detection__]]
00043     [[`_SYSTYPE_BSD`] [__predef_detection__]]
00044 
00045     [[`BSD4_2`] [4.2.0]]
00046     [[`BSD4_3`] [4.3.0]]
00047     [[`BSD4_4`] [4.4.0]]
00048     [[`BSD`] [V.R.0]]
00049     ]
00050  */
00051 
00052 #include <boost/predef/os/bsd/bsdi.h>
00053 #include <boost/predef/os/bsd/dragonfly.h>
00054 #include <boost/predef/os/bsd/free.h>
00055 #include <boost/predef/os/bsd/open.h>
00056 #include <boost/predef/os/bsd/net.h>
00057 
00058 #ifndef BOOST_OS_BSD
00059 #define BOOST_OS_BSD BOOST_VERSION_NUMBER_NOT_AVAILABLE
00060 #endif
00061 
00062 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
00063     defined(BSD) || \
00064     defined(_SYSTYPE_BSD) \
00065     )
00066 #   undef BOOST_OS_BSD
00067 #   include <sys/param.h>
00068 #   if !defined(BOOST_OS_BSD) && defined(BSD4_4)
00069 #       define BOOST_OS_BSD BOOST_VERSION_NUMBER(4,4,0)
00070 #   endif
00071 #   if !defined(BOOST_OS_BSD) && defined(BSD4_3)
00072 #       define BOOST_OS_BSD BOOST_VERSION_NUMBER(4,3,0)
00073 #   endif
00074 #   if !defined(BOOST_OS_BSD) && defined(BSD4_2)
00075 #       define BOOST_OS_BSD BOOST_VERSION_NUMBER(4,2,0)
00076 #   endif
00077 #   if !defined(BOOST_OS_BSD) && defined(BSD)
00078 #       define BOOST_OS_BSD BOOST_PREDEF_MAKE_10_VVRR(BSD)
00079 #   endif
00080 #   if !defined(BOOST_OS_BSD)
00081 #       define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
00082 #   endif
00083 #endif
00084 
00085 #if BOOST_OS_BSD
00086 #   define BOOST_OS_BSD_AVAILABLE
00087 #   include <boost/predef/detail/os_detected.h>
00088 #endif
00089 
00090 #define BOOST_OS_BSD_NAME "BSD"
00091 
00092 #else
00093 
00094 #include <boost/predef/os/bsd/bsdi.h>
00095 #include <boost/predef/os/bsd/dragonfly.h>
00096 #include <boost/predef/os/bsd/free.h>
00097 #include <boost/predef/os/bsd/open.h>
00098 #include <boost/predef/os/bsd/net.h>
00099 
00100 #endif
00101 
00102 #include <boost/predef/detail/test.h>
00103 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD,BOOST_OS_BSD_NAME)


cv_bridge
Author(s): Patrick Mihelich, James Bowman
autogenerated on Wed Aug 9 2017 02:51:41