Changeset 44626


Ignore:
Timestamp:
Apr 20, 2008, 1:30:15 PM (10 years ago)
Author:
Hartmut Kaiser
Message:

Spirit.Lex: Added a workaround for missing WCHAR_MAX constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/spirit/home/support/detail/lexer/consts.hpp

    r44358 r44626  
    2121    const std::size_t max_macro_len = 20;
    2222    const std::size_t num_chars = 256;
     23#if defined(WCHAR_MAX)
    2324    const std::size_t num_wchar_ts = WCHAR_MAX < 0x110000 ? WCHAR_MAX : 0x110000;
     25#else
     26    const std::size_t num_wchar_ts = 0x110000;
     27#endif
    2428    const std::size_t null_token = static_cast<std::size_t> (~0);
    2529    const std::size_t bol_token = static_cast<std::size_t> (~1);
Note: See TracChangeset for help on using the changeset viewer.