From 6c5ff3bf46f31e61fadf9507d143dfa05f756420 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 26 Jun 2007 16:28:27 +0000 Subject: [PATCH] scons part of bug 3527 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18895 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/SConstruct | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/development/scons/SConstruct b/development/scons/SConstruct index c35e110094..54ed25e8a9 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -814,7 +814,17 @@ utils.createConfigFile(conf, # define WANT_GETFILEATTRIBUTESEX_WRAPPER 1 #endif -#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 +/* + * the FreeBSD libc uses UCS4, but libstdc++ has no proper wchar_t + * support compiled in: + * http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_9 + * And we are not interested at all what libc + * does: What we need is a 32bit wide wchar_t, and a libstdc++ that + * has the needed wchar_t support and uses UCS4. Whether it + * implements this with the help of libc, or whether it has own code + * does not matter for us, because we don't use libc directly (Georg) +*/ +#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && ! defined(__FREEBSD__) # define LIBC_WCTYPE_USES_UCS4 #endif -- 2.39.2