Move HAVE_WCSXXX from wx/osx/config_xcode.h to wx/osx/chkconf.h.
The latter file is also used when building from the command line while the former is only used in Xcode build, as its name indicates (which didn't help me to notice it, however). Also restore the test for wcsftime() in configure as it is available even on older systems but do not test for strnlen() -- as it is not. These changes amend those of r74523. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
10
configure
vendored
10
configure
vendored
@@ -29906,12 +29906,12 @@ if test "$WCSLEN_FOUND" = 1; then
|
||||
|
||||
fi
|
||||
|
||||
for ac_func in strnlen
|
||||
for ac_func in wcsftime
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
|
||||
if test "x$ac_cv_func_strnlen" = xyes; then :
|
||||
ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime"
|
||||
if test "x$ac_cv_func_wcsftime" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_STRNLEN 1
|
||||
#define HAVE_WCSFTIME 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
@@ -29919,7 +29919,7 @@ done
|
||||
|
||||
|
||||
if test "$wxUSE_MAC" != 1; then
|
||||
for ac_func in wcsdup wcsftime wcsnlen wcscasecmp wcsncasecmp
|
||||
for ac_func in strnlen wcsdup wcsnlen wcscasecmp wcsncasecmp
|
||||
do :
|
||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||
|
Reference in New Issue
Block a user