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
This commit is contained in:
Vadim Zeitlin
2004-03-30 14:28:00 +00:00
parent 2c25bd5570
commit acaffac9f0

View 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)