Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2003-06-18 08:17:30


Hi,

I found a problem with the intel configuration for Linux.
For that compiler the macro BOOST_NO_INTRINSIC_WCHAR_T
gets defined although the compiler has an intrinsic wchar_t.

Neither _WCHAR_T_DEFINED nor _NATIVE_WCHAR_T_DEFINED is
defined on Linux. __WCHAR_TYPE__ is defined to int. Never-
theless, wchar_t and int are distinct types.

The attached patch to intel.hpp fixes this problem for
intel 7.1 on Linux. However, I'm not sure wether the change
is acceptable in this form. I'm also not sure wether
it causes problems with version 7.0 of the compiler.

Regards,
m

Index: intel.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/config/compiler/intel.hpp,v
retrieving revision 1.25
diff -u -r1.25 intel.hpp
--- intel.hpp 3 Jun 2003 00:04:31 -0000 1.25
+++ intel.hpp 18 Jun 2003 13:13:08 -0000
@@ -58,7 +58,7 @@
 #if BOOST_INTEL_CXX_VERSION < 700
 # define BOOST_NO_INTRINSIC_WCHAR_T
 #else
-# ifndef _WCHAR_T_DEFINED
+# if !defined(_WCHAR_T_DEFINED) && !defined(__linux__)
 # define BOOST_NO_INTRINSIC_WCHAR_T
 # endif
 #endif


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk