summaryrefslogtreecommitdiff
path: root/innobase/include/univ.i
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/include/univ.i')
-rw-r--r--innobase/include/univ.i15
1 files changed, 9 insertions, 6 deletions
diff --git a/innobase/include/univ.i b/innobase/include/univ.i
index 463f7e5d04d..9e7b6ab3f1b 100644
--- a/innobase/include/univ.i
+++ b/innobase/include/univ.i
@@ -65,14 +65,17 @@ Microsoft Visual C++ */
#define HAVE_PWRITE
#endif
-/* Apparently in some old SCO Unixes the return type of sprintf is not
-an integer as it should be according to the modern Posix standard. Because
-of that we define sprintf inside InnoDB code as our own function ut_sprintf */
-#undef sprintf
-#define sprintf ut_sprintf
-
+#endif /* #if (defined(WIN32) || ... */
+
+/* On the 64-bit Windows we replace printf with ut_printf, etc. so that
+we can use the %lu format string to print a 64-bit ulint */
+#if defined(__WIN__) && (defined(WIN64) || defined(_WIN64))
+#define printf ut_printf
+#define sprintf ut_sprintf
+#define fprintf ut_fprintf
#endif
+
/* DEBUG VERSION CONTROL
===================== */