aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2004-06-24 13:49:14 +0000
committerGunter Knauf <gk@gknw.de>2004-06-24 13:49:14 +0000
commite7dbbd16a5ba5045b133cca26359683ac458f98b (patch)
tree8a66e11bd4535e1c8cc539573dc1b76bfadc4144 /src
parent62f04579610e3d34955331ed8f3b16bfdaa2fae1 (diff)
fixed the MSVC build.
Diffstat (limited to 'src')
-rw-r--r--src/config-win32.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config-win32.h b/src/config-win32.h
index 308ab2d2c..1d7a4688e 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -29,9 +29,15 @@
/*************************************************
* This section is for compiler specific defines.*
*************************************************/
-#ifdef MINGW32 /* Borland and MS don't have this */
+/* Borland and MS don't have this */
+#if defined(MINGW32) || defined(__WATCOMC__) || defined(__LCC__)
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
+#else
+
+/* MSVC needs an underscore */
+#define snprintf _snprintf
+
#endif