]> git.lyx.org Git - lyx.git/commitdiff
scons part of bug 3527
authorBo Peng <bpeng@lyx.org>
Tue, 26 Jun 2007 16:28:27 +0000 (16:28 +0000)
committerBo Peng <bpeng@lyx.org>
Tue, 26 Jun 2007 16:28:27 +0000 (16:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18895 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConstruct

index c35e11009415821c26fb7c7a3455d72ac62f3fff..54ed25e8a945fc5f8f703be2d737a7a90425e897 100644 (file)
@@ -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