Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-07-28 11:23:24


Author: johnmaddock
Date: 2008-07-28 11:23:24 EDT (Mon, 28 Jul 2008)
New Revision: 47853
URL: http://svn.boost.org/trac/boost/changeset/47853

Log:
Fixes #2084.
Text files modified:
   trunk/boost/config/platform/bsd.hpp | 14 +++++++++++++-
   1 files changed, 13 insertions(+), 1 deletions(-)

Modified: trunk/boost/config/platform/bsd.hpp
==============================================================================
--- trunk/boost/config/platform/bsd.hpp (original)
+++ trunk/boost/config/platform/bsd.hpp 2008-07-28 11:23:24 EDT (Mon, 28 Jul 2008)
@@ -43,7 +43,19 @@
 //
 // No wide character support in the BSD header files:
 //
-#if !(defined(__FreeBSD__) && (__FreeBSD__ >= 5))
+#if defined(__NetBSD__)
+#define __NetBSD_GCC__ (__GNUC__ * 1000000 \
+ + __GNUC_MINOR__ * 1000 \
+ + __GNUC_PATCHLEVEL__)
+// XXX - the following is required until c++config.h
+// defines _GLIBCXX_HAVE_SWPRINTF and friends
+// or the preprocessor conditionals are removed
+// from the cwchar header.
+#define _GLIBCXX_HAVE_SWPRINTF 1
+#endif
+
+#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \
+ || (__NetBSD_GCC__ >= 2095003))
 # define BOOST_NO_CWCHAR
 #endif
 //


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