[Boost-bugs] [Boost C++ Libraries] #11566: atomic: int_sizes with MSVC 8 (ARM) problem due to definition of WCHAR_MAX

Subject: [Boost-bugs] [Boost C++ Libraries] #11566: atomic: int_sizes with MSVC 8 (ARM) problem due to definition of WCHAR_MAX
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-21 10:24:44


#11566: atomic: int_sizes with MSVC 8 (ARM) problem due to definition of WCHAR_MAX
--------------------------------------------+--------------------------
 Reporter: Florian Huber <FlorianHuber@…> | Owner: timblechmann
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: atomic
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
--------------------------------------------+--------------------------
 For the Windows CE (ARM compiler) of VC 8 (15.00) the WCHAR_MAX seems also
 to be defined in a "strange" way:
 {{{
 #define WCHAR_MAX ((wchar_t)-1)
 }}}

 This causes the
 [https://github.com/boostorg/atomic/blob/master/include/boost/atomic/detail/int_sizes.hpp#L123
 line] to break.

 For me changing the line 120 to
 {{{
 #if defined(_MSC_VER) && ( _MSC_VER <= 1310 || defined(UNDER_CE) &&
 _MSC_VER <= 1500 )
 }}}
 works.

 NB: The definition of WCHAR_MAX was changed in 15.01 to
 #define WCHAR_MAX 0xffff

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11566>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC