summaryrefslogtreecommitdiffstats
path: root/win/configure.in
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-02-26 21:40:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-02-26 21:40:08 (GMT)
commitdcc2940c8a911117fb04a1f895f950f8861fafb8 (patch)
treee2dd893b5ab88d69cb2f661e01e606da3e8077e2 /win/configure.in
parentc76ff9ab138b796f3bafd916f6b5a1ab230d0447 (diff)
parent959ba9af6b8b001d476ae7f07b181ccbf1872c0e (diff)
downloadtk-dcc2940c8a911117fb04a1f895f950f8861fafb8.zip
tk-dcc2940c8a911117fb04a1f895f950f8861fafb8.tar.gz
tk-dcc2940c8a911117fb04a1f895f950f8861fafb8.tar.bz2
Provide fallback for _strtoi64
Diffstat (limited to 'win/configure.in')
-rw-r--r--win/configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/win/configure.in b/win/configure.in
index e24e2af..deed37d 100644
--- a/win/configure.in
+++ b/win/configure.in
@@ -98,6 +98,18 @@ SC_CONFIG_CFLAGS
AC_CHECK_HEADER(errno.h, , MAN2TCLFLAGS="-DNO_ERRNO_H")
AC_SUBST(MAN2TCLFLAGS)
+#-------------------------------------------
+# Check for _strtoi64
+#-------------------------------------------
+
+AC_CACHE_CHECK([availability of _strtoi64], tcl_have_strtoi64, [
+ AC_TRY_LINK([#include <stdlib.h>],
+ [_strtoi64(0,0,0)],
+ tcl_have_strtoi64=yes, tcl_have_strtoi64=no)])
+if test $tcl_have_strtoi64 = no; then
+ AC_DEFINE(NO_STRTOI64, 1, [Is _strtoi64 function available?])
+fi
+
#--------------------------------------------------------------------
# Windows XP theme engine header for Ttk
#--------------------------------------------------------------------