1 /* 2 Copyright Rene Rivera 2012-2015 3 Distributed under the Boost Software License, Version 1.0. 4 (See accompanying file LICENSE_1_0.txt or copy at 5 http://www.boost.org/LICENSE_1_0.txt) 6 */ 7 8 #ifndef BOOST_PREDEF_OS_BSD_OPEN_H 9 #define BOOST_PREDEF_OS_BSD_OPEN_H 10 11 #include <boost/predef/os/bsd.h> 12 13 /* tag::reference[] 14 = `BOOST_OS_BSD_OPEN` 15 16 http://en.wikipedia.org/wiki/Openbsd[OpenBSD] operating system. 17 18 [options="header"] 19 |=== 20 | {predef_symbol} | {predef_version} 21 22 | `+__OpenBSD__+` | {predef_detection} 23 24 | `OpenBSD2_0` | 2.0.0 25 | `OpenBSD2_1` | 2.1.0 26 | `OpenBSD2_2` | 2.2.0 27 | `OpenBSD2_3` | 2.3.0 28 | `OpenBSD2_4` | 2.4.0 29 | `OpenBSD2_5` | 2.5.0 30 | `OpenBSD2_6` | 2.6.0 31 | `OpenBSD2_7` | 2.7.0 32 | `OpenBSD2_8` | 2.8.0 33 | `OpenBSD2_9` | 2.9.0 34 | `OpenBSD3_0` | 3.0.0 35 | `OpenBSD3_1` | 3.1.0 36 | `OpenBSD3_2` | 3.2.0 37 | `OpenBSD3_3` | 3.3.0 38 | `OpenBSD3_4` | 3.4.0 39 | `OpenBSD3_5` | 3.5.0 40 | `OpenBSD3_6` | 3.6.0 41 | `OpenBSD3_7` | 3.7.0 42 | `OpenBSD3_8` | 3.8.0 43 | `OpenBSD3_9` | 3.9.0 44 | `OpenBSD4_0` | 4.0.0 45 | `OpenBSD4_1` | 4.1.0 46 | `OpenBSD4_2` | 4.2.0 47 | `OpenBSD4_3` | 4.3.0 48 | `OpenBSD4_4` | 4.4.0 49 | `OpenBSD4_5` | 4.5.0 50 | `OpenBSD4_6` | 4.6.0 51 | `OpenBSD4_7` | 4.7.0 52 | `OpenBSD4_8` | 4.8.0 53 | `OpenBSD4_9` | 4.9.0 54 | `OpenBSD5_0` | 5.0.0 55 | `OpenBSD5_1` | 5.1.0 56 | `OpenBSD5_2` | 5.2.0 57 | `OpenBSD5_3` | 5.3.0 58 | `OpenBSD5_4` | 5.4.0 59 | `OpenBSD5_5` | 5.5.0 60 | `OpenBSD5_6` | 5.6.0 61 | `OpenBSD5_7` | 5.7.0 62 | `OpenBSD5_8` | 5.8.0 63 | `OpenBSD5_9` | 5.9.0 64 | `OpenBSD6_0` | 6.0.0 65 | `OpenBSD6_1` | 6.1.0 66 | `OpenBSD6_2` | 6.2.0 67 | `OpenBSD6_3` | 6.3.0 68 | `OpenBSD6_4` | 6.4.0 69 | `OpenBSD6_5` | 6.5.0 70 | `OpenBSD6_6` | 6.6.0 71 | `OpenBSD6_7` | 6.7.0 72 | `OpenBSD6_8` | 6.8.0 73 | `OpenBSD6_9` | 6.9.0 74 |=== 75 */ // end::reference[] 76 77 #define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER_NOT_AVAILABLE 78 79 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \ 80 defined(__OpenBSD__) \ 81 ) 82 # ifndef BOOST_OS_BSD_AVAILABLE 83 # define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE 84 # define BOOST_OS_BSD_AVAILABLE 85 # endif 86 # undef BOOST_OS_BSD_OPEN 87 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_0) 88 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,0,0) 89 # endif 90 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_1) 91 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,1,0) 92 # endif 93 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_2) 94 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,2,0) 95 # endif 96 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_3) 97 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,3,0) 98 # endif 99 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_4) 100 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,4,0) 101 # endif 102 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_5) 103 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,5,0) 104 # endif 105 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_6) 106 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,6,0) 107 # endif 108 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_7) 109 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,7,0) 110 # endif 111 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_8) 112 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,8,0) 113 # endif 114 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_9) 115 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,9,0) 116 # endif 117 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_0) 118 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,0,0) 119 # endif 120 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_1) 121 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,1,0) 122 # endif 123 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_2) 124 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,2,0) 125 # endif 126 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_3) 127 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,3,0) 128 # endif 129 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_4) 130 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,4,0) 131 # endif 132 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_5) 133 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,5,0) 134 # endif 135 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_6) 136 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,6,0) 137 # endif 138 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_7) 139 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,7,0) 140 # endif 141 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_8) 142 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,8,0) 143 # endif 144 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_9) 145 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,9,0) 146 # endif 147 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_0) 148 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,0,0) 149 # endif 150 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_1) 151 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,1,0) 152 # endif 153 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_2) 154 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,2,0) 155 # endif 156 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_3) 157 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,3,0) 158 # endif 159 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_4) 160 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,4,0) 161 # endif 162 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_5) 163 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,5,0) 164 # endif 165 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_6) 166 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,6,0) 167 # endif 168 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_7) 169 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,7,0) 170 # endif 171 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_8) 172 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,8,0) 173 # endif 174 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_9) 175 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,9,0) 176 # endif 177 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_0) 178 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,0,0) 179 # endif 180 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_1) 181 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,1,0) 182 # endif 183 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_2) 184 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,2,0) 185 # endif 186 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_3) 187 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,3,0) 188 # endif 189 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_4) 190 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,4,0) 191 # endif 192 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_5) 193 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,5,0) 194 # endif 195 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_6) 196 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,6,0) 197 # endif 198 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_7) 199 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,7,0) 200 # endif 201 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_8) 202 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,8,0) 203 # endif 204 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD5_9) 205 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(5,9,0) 206 # endif 207 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_0) 208 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,0,0) 209 # endif 210 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_1) 211 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,1,0) 212 # endif 213 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_2) 214 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,2,0) 215 # endif 216 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_3) 217 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,3,0) 218 # endif 219 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_4) 220 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,4,0) 221 # endif 222 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_5) 223 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,5,0) 224 # endif 225 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_6) 226 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,6,0) 227 # endif 228 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_7) 229 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,7,0) 230 # endif 231 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_8) 232 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,8,0) 233 # endif 234 # if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD6_9) 235 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(6,9,0) 236 # endif 237 # if !defined(BOOST_OS_BSD_OPEN) 238 # define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER_AVAILABLE 239 # endif 240 #endif 241 242 #if BOOST_OS_BSD_OPEN 243 # define BOOST_OS_BSD_OPEN_AVAILABLE 244 # include <boost/predef/detail/os_detected.h> 245 #endif 246 247 #define BOOST_OS_BSD_OPEN_NAME "OpenBSD" 248 249 #endif 250 251 #include <boost/predef/detail/test.h> 252 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_OPEN,BOOST_OS_BSD_OPEN_NAME) 253