summaryrefslogtreecommitdiffstats
path: root/win/configure.in
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-02-26 21:35:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-02-26 21:35:52 (GMT)
commit4e98790eef8c37e8e16734574cc9c2c9b564892b (patch)
treeacc5eb75a48b7ec6ff3f60f71d7192bb09070f3e /win/configure.in
parent1884b124718fae2f0fc70fc56a3645d9c918cbb4 (diff)
parent672ad30f66fb7d68caca7ccfd50dfa6abfc551d2 (diff)
downloadtk-4e98790eef8c37e8e16734574cc9c2c9b564892b.zip
tk-4e98790eef8c37e8e16734574cc9c2c9b564892b.tar.gz
tk-4e98790eef8c37e8e16734574cc9c2c9b564892b.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 a8e1012..7570b17 100644
--- a/win/configure.in
+++ b/win/configure.in
@@ -115,6 +115,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
#--------------------------------------------------------------------