wave_config.hpp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. Global application configuration
  4. http://www.boost.org/
  5. Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
  6. Software License, Version 1.0. (See accompanying file
  7. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. =============================================================================*/
  9. #if !defined(BOOST_WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED)
  10. #define BOOST_WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED
  11. #include <boost/config.hpp>
  12. #include <boost/config/pragma_message.hpp>
  13. #include <boost/detail/workaround.hpp>
  14. #include <boost/version.hpp>
  15. #include <boost/spirit/include/classic_version.hpp>
  16. #include <boost/wave/wave_version.hpp>
  17. ///////////////////////////////////////////////////////////////////////////////
  18. // Define the maximal include nesting depth allowed. If this value isn't
  19. // defined it defaults to 1024
  20. //
  21. // To define a new initial include nesting define the following constant
  22. // before including this file.
  23. //
  24. #if !defined(BOOST_WAVE_MAX_INCLUDE_LEVEL_DEPTH)
  25. #define BOOST_WAVE_MAX_INCLUDE_LEVEL_DEPTH 1024
  26. #endif
  27. ///////////////////////////////////////////////////////////////////////////////
  28. // Decide, whether to support variadics and placemarkers
  29. //
  30. // To implement support variadics and placemarkers define the following to
  31. // something not equal to zero.
  32. //
  33. #if !defined(BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS)
  34. #define BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS 1
  35. #endif
  36. ///////////////////////////////////////////////////////////////////////////////
  37. // Decide whether to support the C++20 __VA_OPT__ variadics feature
  38. //
  39. //
  40. #if !defined(BOOST_WAVE_SUPPORT_VA_OPT) && BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS
  41. #define BOOST_WAVE_SUPPORT_VA_OPT 1
  42. #endif
  43. ///////////////////////////////////////////////////////////////////////////////
  44. // Decide, whether to implement a #warning directive as an extension to the
  45. // C++ Standard (same as #error, but emits a warning, not an error)
  46. //
  47. // To disable the implementation of #warning directives, define the following
  48. // constant as zero before including this file.
  49. //
  50. #if !defined(BOOST_WAVE_SUPPORT_WARNING_DIRECTIVE)
  51. #define BOOST_WAVE_SUPPORT_WARNING_DIRECTIVE 1
  52. #endif
  53. ///////////////////////////////////////////////////////////////////////////////
  54. // Decide, whether to implement #pragma once
  55. //
  56. // To disable the implementation of #pragma once, define the following
  57. // constant as zero before including this file.
  58. //
  59. #if !defined(BOOST_WAVE_SUPPORT_PRAGMA_ONCE)
  60. #define BOOST_WAVE_SUPPORT_PRAGMA_ONCE 1
  61. #endif
  62. ///////////////////////////////////////////////////////////////////////////////
  63. // Decide, whether to implement #pragma message("")
  64. //
  65. // To disable the implementation of #pragma message(""), define the following
  66. // constant as zero before including this file.
  67. //
  68. #if !defined(BOOST_WAVE_SUPPORT_PRAGMA_MESSAGE)
  69. #define BOOST_WAVE_SUPPORT_PRAGMA_MESSAGE 1
  70. #endif
  71. ///////////////////////////////////////////////////////////////////////////////
  72. // Decide, whether to implement #include_next
  73. // Please note, that this is an extension to the C++ Standard.
  74. //
  75. // To disable the implementation of #include_next, define the following
  76. // constant as zero before including this file.
  77. //
  78. #if !defined(BOOST_WAVE_SUPPORT_INCLUDE_NEXT)
  79. #define BOOST_WAVE_SUPPORT_INCLUDE_NEXT 1
  80. #endif
  81. ///////////////////////////////////////////////////////////////////////////////
  82. // Decide, whether to support C++11
  83. //
  84. // To implement C++11 keywords and preprocessor semantics define the following
  85. // to something not equal to zero.
  86. //
  87. #if !defined(BOOST_WAVE_SUPPORT_CPP0X)
  88. #define BOOST_WAVE_SUPPORT_CPP0X 1
  89. #undef BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS
  90. #define BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS 1
  91. #endif
  92. ///////////////////////////////////////////////////////////////////////////////
  93. // Decide whether to support C++17
  94. //
  95. #if !defined(BOOST_WAVE_SUPPORT_CPP1Z)
  96. # define BOOST_WAVE_SUPPORT_CPP1Z 1
  97. # undef BOOST_WAVE_SUPPORT_CPP0X
  98. # define BOOST_WAVE_SUPPORT_CPP0X 1
  99. # undef BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS
  100. # define BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS 1
  101. # if !defined(BOOST_WAVE_SUPPORT_HAS_INCLUDE)
  102. # define BOOST_WAVE_SUPPORT_HAS_INCLUDE 1
  103. # endif
  104. #elif BOOST_WAVE_SUPPORT_CPP1Z == 0
  105. # undef BOOST_WAVE_SUPPORT_HAS_INCLUDE
  106. # define BOOST_WAVE_SUPPORT_HAS_INCLUDE 0
  107. #endif
  108. ///////////////////////////////////////////////////////////////////////////////
  109. // Decide whether to support C++20
  110. //
  111. #if !defined(BOOST_WAVE_SUPPORT_CPP2A)
  112. # define BOOST_WAVE_SUPPORT_CPP2A 1
  113. # undef BOOST_WAVE_SUPPORT_CPP0X
  114. # define BOOST_WAVE_SUPPORT_CPP0X 1
  115. # undef BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS
  116. # define BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS 1
  117. # undef BOOST_WAVE_SUPPORT_CPP1Z
  118. # define BOOST_WAVE_SUPPORT_CPP1Z 1
  119. # if !defined(BOOST_WAVE_SUPPORT_HAS_INCLUDE)
  120. # define BOOST_WAVE_SUPPORT_HAS_INCLUDE 1
  121. # endif
  122. # if !defined(BOOST_WAVE_SUPPORT_VA_OPT)
  123. # define BOOST_WAVE_SUPPORT_VA_OPT 1
  124. # endif
  125. #elif BOOST_WAVE_SUPPORT_CPP2A == 0
  126. # undef BOOST_WAVE_SUPPORT_VA_OPT
  127. # define BOOST_WAVE_SUPPORT_VA_OPT 0
  128. #endif
  129. ///////////////////////////////////////////////////////////////////////////////
  130. // Undefine the following, to enable some MS specific language extensions:
  131. // __int8, __int16, __int32, __int64, __based, __declspec, __cdecl,
  132. // __fastcall, __stdcall, __try, __except, __finally, __leave, __inline,
  133. // __asm, #region, #endregion
  134. //
  135. // Note: By default this is enabled for Windows based systems, otherwise it's
  136. // disabled.
  137. #if !defined(BOOST_WAVE_SUPPORT_MS_EXTENSIONS)
  138. #if defined(BOOST_WINDOWS)
  139. #define BOOST_WAVE_SUPPORT_MS_EXTENSIONS 1
  140. #else
  141. #define BOOST_WAVE_SUPPORT_MS_EXTENSIONS 0
  142. #endif
  143. #endif
  144. ///////////////////////////////////////////////////////////////////////////////
  145. // Allow the message body of the #error and #warning directives to be
  146. // preprocessed before the diagnostic is issued.
  147. //
  148. // To disable preprocessing of the body of #error and #warning directives,
  149. // define the following constant as zero before including this file.
  150. //
  151. #if !defined(BOOST_WAVE_PREPROCESS_ERROR_MESSAGE_BODY)
  152. #define BOOST_WAVE_PREPROCESS_ERROR_MESSAGE_BODY 1
  153. #endif
  154. ///////////////////////////////////////////////////////////////////////////////
  155. // Allow the #pragma directives to be returned to the caller (optionally after
  156. // preprocessing the body)
  157. //
  158. // To disable the library to emit unknown #pragma directives, define the
  159. // following constant as zero before including this file.
  160. //
  161. #if !defined(BOOST_WAVE_EMIT_PRAGMA_DIRECTIVES)
  162. #define BOOST_WAVE_EMIT_PRAGMA_DIRECTIVES 1
  163. #endif
  164. ///////////////////////////////////////////////////////////////////////////////
  165. // Allow the body of a #pragma directive to be preprocessed before the
  166. // directive is returned to the caller.
  167. //
  168. // To disable the preprocessing of the body of #pragma directives, define the
  169. // following constant as zero before including this file.
  170. //
  171. #if !defined(BOOST_WAVE_PREPROCESS_PRAGMA_BODY)
  172. #define BOOST_WAVE_PREPROCESS_PRAGMA_BODY 1
  173. #endif
  174. ///////////////////////////////////////////////////////////////////////////////
  175. // Allow to define macros with the command line syntax (-DMACRO(x)=definition)
  176. //
  177. // To disable the possibility to define macros based on the command line
  178. // syntax, define the following constant as zero before including this file.
  179. //
  180. #if !defined(BOOST_WAVE_ENABLE_COMMANDLINE_MACROS)
  181. #define BOOST_WAVE_ENABLE_COMMANDLINE_MACROS 1
  182. #endif
  183. ///////////////////////////////////////////////////////////////////////////////
  184. // Define the pragma keyword to be used by the library to recognize its own
  185. // pragma's. If nothing else is defined, then 'wave' will be used as the
  186. // default keyword, i.e. the library recognizes all
  187. //
  188. // #pragma wave option [(argument)]
  189. //
  190. // and dispatches the handling to the interpret_pragma() preprocessing hook
  191. // function (see file: preprocessing_hooks.hpp). The arguments part of the
  192. // pragma is optional.
  193. // The BOOST_WAVE_PRAGMA_KEYWORD constant needs to be defined to
  194. // resolve as a string literal value.
  195. #if !defined(BOOST_WAVE_PRAGMA_KEYWORD)
  196. #define BOOST_WAVE_PRAGMA_KEYWORD "wave"
  197. #endif
  198. ///////////////////////////////////////////////////////////////////////////////
  199. // Configure Wave thread support, Boost.Spirit and Boost.Pool are configured
  200. // based on these settings automatically
  201. //
  202. // If BOOST_WAVE_SUPPORT_THREADING is not defined, Wave will use the global
  203. // Boost build settings (BOOST_HAS_THREADS), if it is defined its value
  204. // defines, whether threading will be enabled or not (should be set to '0'
  205. // or '1').
  206. #if !defined(BOOST_WAVE_SUPPORT_THREADING)
  207. #if defined(BOOST_HAS_THREADS)
  208. #define BOOST_WAVE_SUPPORT_THREADING 1
  209. #else
  210. #define BOOST_WAVE_SUPPORT_THREADING 0
  211. #endif
  212. #endif
  213. #if BOOST_WAVE_SUPPORT_THREADING != 0
  214. #ifndef BOOST_SPIRIT_THREADSAFE
  215. #define BOOST_SPIRIT_THREADSAFE
  216. #endif
  217. #define PHOENIX_THREADSAFE 1
  218. #else
  219. // disable thread support in Boost.Pool
  220. #define BOOST_NO_MT 1
  221. #endif
  222. ///////////////////////////////////////////////////////////////////////////////
  223. // Define the string type to be used to store the token values and the file
  224. // names inside a file_position template class
  225. //
  226. #if !defined(BOOST_WAVE_STRINGTYPE)
  227. // VC7 isn't able to compile the flex_string class, fall back to std::string
  228. // CW up to 8.3 chokes as well *sigh*
  229. // Tru64/CXX has linker problems when using flex_string
  230. #if BOOST_WORKAROUND(__MWERKS__, < 0x3200) || \
  231. (defined(__DECCXX) && defined(__alpha)) || \
  232. defined(BOOST_WAVE_STRINGTYPE_USE_STDSTRING)
  233. #define BOOST_WAVE_STRINGTYPE std::string
  234. #if !defined(BOOST_WAVE_STRINGTYPE_USE_STDSTRING)
  235. #define BOOST_WAVE_STRINGTYPE_USE_STDSTRING 1
  236. #endif
  237. #else
  238. // use the following, if you have a fast std::allocator<char>
  239. #define BOOST_WAVE_STRINGTYPE boost::wave::util::flex_string< \
  240. char, std::char_traits<char>, std::allocator<char>, \
  241. boost::wave::util::CowString< \
  242. boost::wave::util::AllocatorStringStorage<char> \
  243. > \
  244. > \
  245. /**/
  246. // This include is needed for the flex_string class used in the
  247. // BOOST_WAVE_STRINGTYPE above.
  248. #include <boost/wave/util/flex_string.hpp>
  249. #endif // BOOST_WORKAROUND(__MWERKS__, < 0x3200) et.al.
  250. #endif // !defined(BOOST_WAVE_STRINGTYPE)
  251. ///////////////////////////////////////////////////////////////////////////////
  252. // The following definition forces the Spirit tree code to use list's instead
  253. // of vectors, which may be more efficient on some platforms
  254. // #define BOOST_SPIRIT_USE_LIST_FOR_TREES
  255. ///////////////////////////////////////////////////////////////////////////////
  256. // The following definition forces the Spirit tree code to use boost pool
  257. // allocators instead of the std::allocator for the vector/list's.
  258. // #define BOOST_SPIRIT_USE_BOOST_ALLOCATOR_FOR_TREES
  259. ///////////////////////////////////////////////////////////////////////////////
  260. // Uncomment the following, if you need debug output, the
  261. // BOOST_SPIRIT_DEBUG_FLAGS_CPP constants below help to fine control the
  262. // amount of the generated debug output.
  263. //#define BOOST_SPIRIT_DEBUG
  264. ///////////////////////////////////////////////////////////////////////////////
  265. // Debug flags for the Wave library, possible flags specified below.
  266. //
  267. // Note: These flags take effect only if the BOOST_SPIRIT_DEBUG constant
  268. // above is defined as well.
  269. #define BOOST_SPIRIT_DEBUG_FLAGS_CPP_GRAMMAR 0x0001
  270. #define BOOST_SPIRIT_DEBUG_FLAGS_TIME_CONVERSION 0x0002
  271. #define BOOST_SPIRIT_DEBUG_FLAGS_CPP_EXPR_GRAMMAR 0x0004
  272. #define BOOST_SPIRIT_DEBUG_FLAGS_INTLIT_GRAMMAR 0x0008
  273. #define BOOST_SPIRIT_DEBUG_FLAGS_CHLIT_GRAMMAR 0x0010
  274. #define BOOST_SPIRIT_DEBUG_FLAGS_DEFINED_GRAMMAR 0x0020
  275. #define BOOST_SPIRIT_DEBUG_FLAGS_PREDEF_MACROS_GRAMMAR 0x0040
  276. #define BOOST_SPIRIT_DEBUG_FLAGS_HAS_INCLUDE_GRAMMAR 0x0080
  277. #if !defined(BOOST_SPIRIT_DEBUG_FLAGS_CPP)
  278. #define BOOST_SPIRIT_DEBUG_FLAGS_CPP 0 // default is no debugging
  279. #endif
  280. ///////////////////////////////////////////////////////////////////////////////
  281. //
  282. // For all recognized preprocessor statements the output parse trees
  283. // formatted as xml are printed. The formatted parse trees are streamed to the
  284. // std::ostream defined by the WAVE_DUMP_PARSE_TREE_OUT constant.
  285. //
  286. // To enable the output of these parse trees, define the following constant
  287. // as zero something not equal to zero before including this file.
  288. //
  289. #if !defined(BOOST_WAVE_DUMP_PARSE_TREE)
  290. #define BOOST_WAVE_DUMP_PARSE_TREE 0
  291. #endif
  292. #if BOOST_WAVE_DUMP_PARSE_TREE != 0 && !defined(BOOST_WAVE_DUMP_PARSE_TREE_OUT)
  293. #define BOOST_WAVE_DUMP_PARSE_TREE_OUT std::cerr
  294. #endif
  295. ///////////////////////////////////////////////////////////////////////////////
  296. //
  297. // For all #if and #elif directives the preprocessed expressions are printed.
  298. // These expressions are streamed to the std::ostream defined by the
  299. // BOOST_WAVE_DUMP_CONDITIONAL_EXPRESSIONS_OUT constant.
  300. //
  301. // To enable the output of the preprocessed expressions, define the following
  302. // constant as something not equal to zero before including this file.
  303. //
  304. #if !defined(BOOST_WAVE_DUMP_CONDITIONAL_EXPRESSIONS)
  305. #define BOOST_WAVE_DUMP_CONDITIONAL_EXPRESSIONS 0
  306. #endif
  307. #if BOOST_WAVE_DUMP_CONDITIONAL_EXPRESSIONS != 0 && \
  308. !defined(BOOST_WAVE_DUMP_CONDITIONAL_EXPRESSIONS_OUT)
  309. #define BOOST_WAVE_DUMP_CONDITIONAL_EXPRESSIONS_OUT std::cerr
  310. #endif
  311. ///////////////////////////////////////////////////////////////////////////////
  312. // Decide, whether to use the separate compilation model for the instantiation
  313. // of the C++ lexer objects.
  314. //
  315. // If this is defined, you should explicitly instantiate the C++ lexer
  316. // template with the correct parameters in a separate compilation unit of
  317. // your program (see the file instantiate_re2c_lexer.cpp).
  318. //
  319. // To use the lexer inclusion model, define the following constant as
  320. // something not equal to zero before including this file.
  321. //
  322. #if !defined(BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION)
  323. #define BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION 1
  324. #endif
  325. ///////////////////////////////////////////////////////////////////////////////
  326. // Decide, whether to use the separate compilation model for the instantiation
  327. // of the grammar objects.
  328. //
  329. // If this is defined, you should explicitly instantiate the grammar
  330. // templates with the correct parameters in a separate compilation unit of
  331. // your program (see the files instantiate_cpp_grammar.cpp et.al.).
  332. //
  333. // To use the grammar inclusion model, define the following constant as
  334. // something not equal to zero before including this file.
  335. //
  336. #if !defined(BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION)
  337. #define BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION 1
  338. #endif
  339. ///////////////////////////////////////////////////////////////////////////////
  340. // Decide whether to use a strict C++ lexer.
  341. //
  342. // If this is defined to something != 0, then the C++ lexers recognize the
  343. // strict C99/C++ basic source character set. If it is not defined or defined
  344. // to zero, the C++ lexers recognize the '$' character as part of identifiers.
  345. //
  346. // The default is to recognize the '$' character as part of identifiers.
  347. //
  348. #if !defined(BOOST_WAVE_USE_STRICT_LEXER)
  349. #define BOOST_WAVE_USE_STRICT_LEXER 0
  350. #endif
  351. ///////////////////////////////////////////////////////////////////////////////
  352. // Decide, whether the serialization of the wave::context class should be
  353. // supported
  354. //
  355. // If this is defined to something not equal to zero the generated code will
  356. // expose routines allowing to store and reload the internal state of the
  357. // wave::context object.
  358. //
  359. // To enable the availability of the serialization functionality, define the
  360. // following constant as something not equal to zero before including this file.
  361. //
  362. #if !defined(BOOST_WAVE_SERIALIZATION)
  363. #define BOOST_WAVE_SERIALIZATION 0
  364. #endif
  365. ///////////////////////////////////////////////////////////////////////////////
  366. // Decide, whether the import keyword is recognized as such
  367. //
  368. // If this is defined to something not equal to zero the Wave will recognize
  369. // import as a keyword (T_IMPORT token id)
  370. //
  371. #if !defined(BOOST_WAVE_SUPPORT_IMPORT_KEYWORD)
  372. #define BOOST_WAVE_SUPPORT_IMPORT_KEYWORD 0
  373. #endif
  374. ///////////////////////////////////////////////////////////////////////////////
  375. // Decide, whether to support long long integers in the preprocessor.
  376. //
  377. // The C++ standard requires the preprocessor to use one of the following
  378. // types for integer literals: long or unsigned long depending on an optional
  379. // suffix ('u', 'l', 'ul', or 'lu')
  380. //
  381. // Sometimes it's required to preprocess integer literals bigger than that
  382. // (i.e. long long or unsigned long long). In this case you need to define the
  383. // BOOST_WAVE_SUPPORT_LONGLONG_INTEGER_LITERALS to something not equal to zero.
  384. //
  385. // This pp constant is effective only, if your target platform supports
  386. // long long integers (BOOST_HAS_LONG_LONG is defined).
  387. //
  388. // Please note, that this setting doesn't relate to the Wave support option
  389. // support_option_long_long, which enables the recognition of 'll' suffixes
  390. // only.
  391. //
  392. // Defining this pp constant enables the recognition of long long integers
  393. // even if these do not have the 'll' suffix.
  394. //
  395. #if !defined(BOOST_WAVE_SUPPORT_LONGLONG_INTEGER_LITERALS)
  396. #define BOOST_WAVE_SUPPORT_LONGLONG_INTEGER_LITERALS 0
  397. #endif
  398. namespace boost { namespace wave
  399. {
  400. #if defined(BOOST_HAS_LONG_LONG) && \
  401. BOOST_WAVE_SUPPORT_LONGLONG_INTEGER_LITERALS != 0
  402. typedef boost::long_long_type int_literal_type;
  403. typedef boost::ulong_long_type uint_literal_type;
  404. #else
  405. typedef long int_literal_type;
  406. typedef unsigned long uint_literal_type;
  407. #endif
  408. }}
  409. ///////////////////////////////////////////////////////////////////////////////
  410. // On some platforms Wave will not be able to properly detect whether wchar_t
  411. // is representing a signed or unsigned integral data type. Use the
  412. // configuration constants below to force wchar_t being signed or unsigned, as
  413. // appropriate.
  414. //
  415. // The default is to use std::numeric_limits<wchar_t>::is_signed.
  416. #define BOOST_WAVE_WCHAR_T_AUTOSELECT 1
  417. #define BOOST_WAVE_WCHAR_T_FORCE_SIGNED 2
  418. #define BOOST_WAVE_WCHAR_T_FORCE_UNSIGNED 3
  419. #if !defined(BOOST_WAVE_WCHAR_T_SIGNEDNESS)
  420. #define BOOST_WAVE_WCHAR_T_SIGNEDNESS BOOST_WAVE_WCHAR_T_AUTOSELECT
  421. #endif
  422. ///////////////////////////////////////////////////////////////////////////////
  423. // Wave needs at least 4 parameters for phoenix actors
  424. #if !defined(PHOENIX_LIMIT)
  425. #define PHOENIX_LIMIT 6
  426. #endif
  427. #if PHOENIX_LIMIT < 6
  428. // boost/home/classic/spirit/classic_attribute.hpp sets PHOENIX_LIMIT to 3!
  429. #error "Boost.Wave: the constant PHOENIX_LIMIT must be at least defined to 6" \
  430. " to compile the library."
  431. #endif
  432. ///////////////////////////////////////////////////////////////////////////////
  433. // Set up dll import/export options
  434. #if (defined(BOOST_WAVE_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && \
  435. !defined(BOOST_WAVE_STATIC_LINK)
  436. #if defined(BOOST_WAVE_SOURCE)
  437. #define BOOST_WAVE_DECL BOOST_SYMBOL_EXPORT
  438. #define BOOST_WAVE_BUILD_DLL
  439. #else
  440. #define BOOST_WAVE_DECL BOOST_SYMBOL_IMPORT
  441. #endif
  442. #endif // building a shared library
  443. #ifndef BOOST_WAVE_DECL
  444. #define BOOST_WAVE_DECL
  445. #endif
  446. ///////////////////////////////////////////////////////////////////////////////
  447. // Auto library naming
  448. #if BOOST_VERSION >= 103100
  449. // auto link features work beginning from Boost V1.31.0
  450. #if !defined(BOOST_WAVE_SOURCE) && !defined(BOOST_ALL_NO_LIB) && \
  451. !defined(BOOST_WAVE_NO_LIB)
  452. #define BOOST_LIB_NAME boost_wave
  453. // tell the auto-link code to select a dll when required:
  454. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_WAVE_DYN_LINK)
  455. #define BOOST_DYN_LINK
  456. #endif
  457. #include <boost/config/auto_link.hpp>
  458. #endif // auto-linking disabled
  459. #endif // BOOST_VERSION
  460. ///////////////////////////////////////////////////////////////////////////////
  461. // Deprecate C++03
  462. ///////////////////////////////////////////////////////////////////////////////
  463. #if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_NO_CXX11_RVALUE_REFERENCES) \
  464. || defined(BOOST_NO_CXX11_HDR_THREAD) \
  465. || defined(BOOST_NO_CXX11_HDR_MUTEX) || defined(BOOST_NO_CXX11_HDR_REGEX)
  466. BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.Wave 1.74 and will be removed in Boost.Wave 1.77.")
  467. #endif
  468. ///////////////////////////////////////////////////////////////////////////////
  469. // Compatibility macros
  470. // (ensure interface compatibility to older Wave versions)
  471. ///////////////////////////////////////////////////////////////////////////////
  472. ///////////////////////////////////////////////////////////////////////////////
  473. // The preprocessing hook signatures changed after the Boost V1.34.0 release
  474. //
  475. // The old hook signatures are no longer available as of Boost 1.76.
  476. //
  477. #if defined(BOOST_WAVE_USE_DEPRECIATED_PREPROCESSING_HOOKS) && \
  478. BOOST_WAVE_USE_DEPRECIATED_PREPROCESSING_HOOKS != 0
  479. #error "The old preprocessing hooks were deprecated in Boost 1.35 and removed in 1.76."
  480. #endif
  481. #endif // !defined(BOOST_WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED)