]> git.saurik.com Git - wxWidgets.git/commitdiff
do strtoll() test using C++ compiler as at least under SGI this function is accessibl...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Jan 2007 00:30:13 +0000 (00:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Jan 2007 00:30:13 +0000 (00:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 841623dd9216257b85c37f03cf15c8aed540cd30..8384eaaf2ec5c3f62e6b96a4419a354536161ec8 100644 (file)
@@ -2545,11 +2545,16 @@ fi
 
 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 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
+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
     WX_CHECK_FUNCS(wcstoull)
 else
     WX_CHECK_FUNCS(strtoull)
 fi
 if test "wxUSE_UNICODE" = "yes"; then
     WX_CHECK_FUNCS(wcstoull)
 else
     WX_CHECK_FUNCS(strtoull)
 fi
+AC_LANG_POP()
 
 dnl ---------------------------------------------------------------------------
 dnl Optional libraries
 
 dnl ---------------------------------------------------------------------------
 dnl Optional libraries