Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef BOOST_PREDEF_OS_BSD_H
00009 #define BOOST_PREDEF_OS_BSD_H
00010
00011
00012
00013
00014
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
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
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)