annotate DEPENDENCIES/generic/include/boost/wave/wave_config.hpp @ 125:34e428693f5d vext

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