From e7dbbd16a5ba5045b133cca26359683ac458f98b Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Thu, 24 Jun 2004 13:49:14 +0000 Subject: fixed the MSVC build. --- src/config-win32.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 header file. */ #define HAVE_UNISTD_H 1 +#else + +/* MSVC needs an underscore */ +#define snprintf _snprintf + #endif -- cgit v1.2.3