|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-04-20 09:30:15
Author: hkaiser
Date: 2008-04-20 09:30:15 EDT (Sun, 20 Apr 2008)
New Revision: 44626
URL: http://svn.boost.org/trac/boost/changeset/44626
Log:
Spirit.Lex: Added a workaround for missing WCHAR_MAX constant.
Text files modified:
trunk/boost/spirit/home/support/detail/lexer/consts.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/spirit/home/support/detail/lexer/consts.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/consts.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/consts.hpp 2008-04-20 09:30:15 EDT (Sun, 20 Apr 2008)
@@ -20,7 +20,11 @@
const std::size_t max_macro_len = 20;
const std::size_t num_chars = 256;
+#if defined(WCHAR_MAX)
const std::size_t num_wchar_ts = WCHAR_MAX < 0x110000 ? WCHAR_MAX : 0x110000;
+#else
+ const std::size_t num_wchar_ts = 0x110000;
+#endif
const std::size_t null_token = static_cast<std::size_t> (~0);
const std::size_t bol_token = static_cast<std::size_t> (~1);
const std::size_t eol_token = static_cast<std::size_t> (~2);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk