Re: [Boost-bugs] [Boost C++ Libraries] #5048: compilation error under ia64 HP-UX11i with gcc-4.4.0

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5048: compilation error under ia64 HP-UX11i with gcc-4.4.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-10 11:59:37


#5048: compilation error under ia64 HP-UX11i with gcc-4.4.0
--------------------------------------+-------------------------------------
  Reporter: ruipfernandes@… | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords: HP-UX
--------------------------------------+-------------------------------------

Comment (by ruipfernandes@…):

 Indeed, changing the jam file isn't the best way.

 Answering your questions: a) yes, defining in
 <boost/config/platform/hpux.hpp> works fine; b) the reason why the
 definition is required is referred in file wchar.h, as follows:

 /* C99 stds require WCHAR_MAX and WCHAR_MIN to be macros which
               can be used in #if constructs, hence, can't have casts
               Retaining the old macros for compatibility
  */
 # if defined(_INCLUDE_STDC__SOURCE_199901)
 # define WCHAR_MAX UINT_MAX /* max value of an unsigned
 integer */
 # define WCHAR_MIN 0
 # else
 # define WCHAR_MAX (wchar_t)UINT_MAX /* max value of an
 unsigned integer */
 # define WCHAR_MIN (wchar_t)0
 # endif

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5048#comment:2>
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:05 UTC