]> git.saurik.com Git - wxWidgets.git/commitdiff
define _INCLUDE__STDC_A1_SOURCE for HP-UX, it is apparently needed to get mbtowcs...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Mar 2004 14:28:00 +0000 (14:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Mar 2004 14:28:00 +0000 (14:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 8910c97a9dd6daf7c3af5fb7f2ef9ef77644a150..7331cefc7c72619c94d4a02d3b3c0f0a20ed5757 100644 (file)
@@ -3587,6 +3587,11 @@ if test "$wx_cv_sizeof_wchar_t" != "0"; then
         AC_DEFINE(HAVE_WCSLEN)
     fi
 
+    dnl HP-UX aCC needs this define to find mbstrtowcs() &c
+    if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
+        CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
+    fi
+
     dnl try to use wcsrtombs instead of wcstombs which is buggy in old GNU
     dnl libc versions if possible
     AC_CHECK_FUNCS(wcsrtombs)