summaryrefslogtreecommitdiffstats
path: root/generic/tkScale.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-01-14 11:10:28 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-01-14 11:10:28 (GMT)
commitcdc8d2fa8d71e9a6f9e452006cc7b10acc9ab930 (patch)
tree6ab96bcbd5bdc6edfaaa6ad37e52bbeb066e98a1 /generic/tkScale.c
parent2d4a3f8ce9a84fd47a0b8586f5b2f62c282a3c95 (diff)
downloadtk-cdc8d2fa8d71e9a6f9e452006cc7b10acc9ab930.zip
tk-cdc8d2fa8d71e9a6f9e452006cc7b10acc9ab930.tar.gz
tk-cdc8d2fa8d71e9a6f9e452006cc7b10acc9ab930.tar.bz2
Factorise definition of snprintf in tkWinInt.h (MSVC before 2015 didn't know snprintf).
Diffstat (limited to 'generic/tkScale.c')
-rw-r--r--generic/tkScale.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c
index 7026821..2d6502d 100644
--- a/generic/tkScale.c
+++ b/generic/tkScale.c
@@ -21,15 +21,10 @@
#include "tkInt.h"
#include "tkScale.h"
-#ifdef _MSC_VER
-/*
- * Earlier versions of MSVC don't know snprintf, but _snprintf is compatible.
- * Note that sprintf is deprecated.
- */
-# define snprintf _snprintf
+#ifdef _WIN32
+#include "tkWinInt.h"
#endif
-
/*
* The following table defines the legal values for the -orient option. It is
* used together with the "enum orient" declaration in tkScale.h.