open.h 8.7 KB

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