| 1 | Index: boost/config/platform/bsd.hpp
|
|---|
| 2 | ===================================================================
|
|---|
| 3 | --- boost/config/platform/bsd.hpp (revision 47802)
|
|---|
| 4 | +++ boost/config/platform/bsd.hpp (working copy)
|
|---|
| 5 | @@ -43,9 +43,21 @@
|
|---|
| 6 | //
|
|---|
| 7 | // No wide character support in the BSD header files:
|
|---|
| 8 | //
|
|---|
| 9 | -#if !(defined(__FreeBSD__) && (__FreeBSD__ >= 5))
|
|---|
| 10 | +#if defined(__NetBSD__)
|
|---|
| 11 | +#define __NetBSD_GCC__ (__GNUC__ * 1000000 \
|
|---|
| 12 | + + __GNUC_MINOR__ * 1000 \
|
|---|
| 13 | + + __GNUC_PATCHLEVEL__)
|
|---|
| 14 | +// XXX - the following is required until c++config.h
|
|---|
| 15 | +// defines _GLIBCXX_HAVE_SWPRINTF and friends
|
|---|
| 16 | +// or the preprocessor conditionals are removed
|
|---|
| 17 | +// from the cwchar header.
|
|---|
| 18 | +#define _GLIBCXX_HAVE_SWPRINTF 1
|
|---|
| 19 | +#endif
|
|---|
| 20 | +#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \
|
|---|
| 21 | + || (__NetBSD_GCC__ >= 2095003))
|
|---|
| 22 | # define BOOST_NO_CWCHAR
|
|---|
| 23 | #endif
|
|---|
| 24 | +
|
|---|
| 25 | //
|
|---|
| 26 | // The BSD <ctype.h> has macros only, no functions:
|
|---|
| 27 | //
|
|---|