From: Vadim Zeitlin Date: Tue, 30 Mar 2004 14:28:00 +0000 (+0000) Subject: define _INCLUDE__STDC_A1_SOURCE for HP-UX, it is apparently needed to get mbtowcs... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/acaffac9f0ead3035d1aecd33d5608877a3ffd88 define _INCLUDE__STDC_A1_SOURCE for HP-UX, it is apparently needed to get mbtowcs() &c git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index 8910c97a9d..7331cefc7c 100644 --- a/configure.in +++ b/configure.in @@ -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)