summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-12 10:24:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-12 10:24:52 (GMT)
commitc961880a268547fd5383d9a39b794e1450d6cf8d (patch)
tree9cc94e8464ccedcfab9a93faa54b28857dc8549d /win/tclWinPort.h
parent52ce2fdeb0ea955e444a4c428450876e131d29c8 (diff)
downloadtcl-c961880a268547fd5383d9a39b794e1450d6cf8d.zip
tcl-c961880a268547fd5383d9a39b794e1450d6cf8d.tar.gz
tcl-c961880a268547fd5383d9a39b794e1450d6cf8d.tar.bz2
Silence various warnings when doing a 64-bit build with MSVC: Those warnings can only _really_ be fixed in "novem" (so, don't silence them there)
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 987d45b..b545a09 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -350,9 +350,9 @@ typedef DWORD_PTR * PDWORD_PTR;
#if defined(_MSC_VER) || defined(__MINGW32__)
# define environ _environ
-# if defined(_MSC_VER) && (_MSC_VER < 1600)
+# if defined(_MSC_VER) && (_MSC_VER < 1600)
# define hypot _hypot
-# endif
+# endif
# define exception _exception
# undef EDEADLOCK
# if defined(__MINGW32__) && !defined(__MSVCRT__)
@@ -381,8 +381,10 @@ typedef DWORD_PTR * PDWORD_PTR;
* including the *printf family and others. Tell it to shut up.
* (_MSC_VER is 1200 for VC6, 1300 or 1310 for vc7.net, 1400 for 8.0)
*/
-#if _MSC_VER >= 1400
-#pragma warning(disable:4996)
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+# pragma warning(disable:4244)
+# pragma warning(disable:4267)
+# pragma warning(disable:4996)
#endif