do strtoll() test using C++ compiler as at least under SGI this function is accessible from C99 but not C++ code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-01-11 00:30:13 +00:00
parent c640dfa5e8
commit 02f0eca5fb

View File

@@ -2545,11 +2545,16 @@ fi
dnl check for C99 string to long long conversion functions, assume that if we dnl check for C99 string to long long conversion functions, assume that if we
dnl have the unsigned variants, then we have the signed ones as well dnl have the unsigned variants, then we have the signed ones as well
dnl
dnl at least under SGI these functions are only available in C99 code and not
dnl in C++ so do these tests using C++ compiler
AC_LANG_PUSH(C++)
if test "wxUSE_UNICODE" = "yes"; then if test "wxUSE_UNICODE" = "yes"; then
WX_CHECK_FUNCS(wcstoull) WX_CHECK_FUNCS(wcstoull)
else else
WX_CHECK_FUNCS(strtoull) WX_CHECK_FUNCS(strtoull)
fi fi
AC_LANG_POP()
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl Optional libraries dnl Optional libraries