diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-12 10:29:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-12 10:29:01 (GMT) |
commit | 348739729adc3e690c33831fd8acc535af539dd8 (patch) | |
tree | 05ba119e84dea62fd02d074c8e3e0e8650482c82 /win/tclWinPort.h | |
parent | b028eea89ffe9a3c009dff8b8f7dde6421d2743b (diff) | |
parent | c90aa17e6ef729c6cab8a8f6a1ca988c9c3d4b62 (diff) | |
download | tcl-348739729adc3e690c33831fd8acc535af539dd8.zip tcl-348739729adc3e690c33831fd8acc535af539dd8.tar.gz tcl-348739729adc3e690c33831fd8acc535af539dd8.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).
Use vsnprintf (more portable) in stead of _vsnprintf, except on MSVC
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r-- | win/tclWinPort.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h index 457c838..ca35f38 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -468,8 +468,13 @@ 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) +# if _MSC_VER >= 1400 +# pragma warning(disable:4244) +# pragma warning(disable:4267) +# pragma warning(disable:4996) +# endif +# define vsnprintf _vsnprintf #endif |