Commit e7dbbd16 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

fixed the MSVC build.

parent 62f04579
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -232,6 +232,11 @@
/* Define if you have the <unistd.h> header file.  */
#define HAVE_UNISTD_H 1

#else

/* MSVC needs an underscore */
#define snprintf _snprintf

#endif

#endif
+7 −1
Original line number Diff line number Diff line
@@ -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