summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-29 12:47:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-29 12:47:45 (GMT)
commit24a5107484c12a34a855d444aa9b8e26b4ec252a (patch)
tree1343f9569eed103fcc365fba7736b329a1949966
parent75fd364ccf966e5c574757d6c67adfc33aafe418 (diff)
downloadtcl-24a5107484c12a34a855d444aa9b8e26b4ec252a.zip
tcl-24a5107484c12a34a855d444aa9b8e26b4ec252a.tar.gz
tcl-24a5107484c12a34a855d444aa9b8e26b4ec252a.tar.bz2
On Windows, use <stdint.h> header-file if available.
-rwxr-xr-xunix/configure8
-rw-r--r--unix/tcl.m48
-rw-r--r--win/tclWinPort.h3
3 files changed, 11 insertions, 8 deletions
diff --git a/unix/configure b/unix/configure
index 67b050a..afdd89b 100755
--- a/unix/configure
+++ b/unix/configure
@@ -6132,13 +6132,13 @@ fi
# below.
if test "$GCC" = yes; then :
- SHLIB_CFLAGS="-fPIC -melf"
- LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
+ SHLIB_CFLAGS="-fPIC -melf"
+ LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
else
- SHLIB_CFLAGS="-Kpic -belf"
- LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
+ SHLIB_CFLAGS="-Kpic -belf"
+ LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
fi
SHLIB_LD="ld -G"
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 815ecae..7a2676f 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1583,11 +1583,11 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
# this test works, since "uname -s" was non-standard in 3.2.4 and
# below.
AS_IF([test "$GCC" = yes], [
- SHLIB_CFLAGS="-fPIC -melf"
- LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
+ SHLIB_CFLAGS="-fPIC -melf"
+ LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
], [
- SHLIB_CFLAGS="-Kpic -belf"
- LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
+ SHLIB_CFLAGS="-Kpic -belf"
+ LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
])
SHLIB_LD="ld -G"
SHLIB_LD_LIBS=""
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 35f183c..1946adb 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -84,6 +84,9 @@ typedef DWORD_PTR * PDWORD_PTR;
#include <process.h>
#include <signal.h>
#include <limits.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifndef __GNUC__
# define strncasecmp _strnicmp