Hi,
The following patches work for FreeBSD 4.3 (latest official release),
where C headers for wide char are not available.
It's for present (and possibly older) versions of FreeBSD. New releases
may probably ship with sufficient wide char support in the future.
Here are the patches (also attached as gzipped diff-file, without the
new wchar.h file):
NEW "src/cheaders/wchar.h":
/* -*- C -*-
* Empty wchar.h for systems which don't have it (e.g., FreeBSD 4.3)
* We don't even pretend it to be real (no WCHAR_MIN, etc.)
*/
--- ChangeLog 2001/08/19 09:33:44 1.799
+++ ChangeLog 2001/09/04 00:33:08
@@ -1,3 +1,7 @@
+2001-09-04 Yves Bastide/Rob lahaye:
+
+ * configure.in: add src/cheaders when wide char support is missing
+
2001-08-19 John Levon <[EMAIL PROTECTED]>
* configure.in: output new qt2 makefiles
--- configure.in 2001/08/19 09:33:45 1.77
+++ configure.in 2001/09/04 00:33:09
@@ -82,6 +82,12 @@
LYX_CXX_STL_STRING
LYX_CXX_GOOD_STD_STRING
LYX_CXX_CHEADERS
+
+### Add cheaders directory when cwchar.h include is missing
+AC_CHECK_HEADER(cwchar.h,
+ [],
+ [ LYX_ADD_INC_DIR(lyx_cppflags,\$(top_srcdir)/src/cheaders) ])
+
LYX_CXX_GLOBAL_CSTD
LYX_STD_COUNT
dnl we disable rtti for now
--- src/cheaders/ChangeLog 2001/09/02 11:49:35 1.3
+++ src/cheaders/ChangeLog 2001/09/04 00:33:15
@@ -1,3 +1,6 @@
+2001-09-04 Yves Bastide/Rob lahaye:
+ * wchar.h : new empty file
+
2001-09-02 Angus Leeming <[EMAIL PROTECTED]>
* cassert: new file. (Required by the boost tuple stuff).
diff_wchar.gz