fixed the MSVC build.

This commit is contained in:
Gunter Knauf 2004-06-24 13:49:14 +00:00
parent 62f0457961
commit e7dbbd16a5
2 changed files with 12 additions and 1 deletions

View File

@ -232,6 +232,11 @@
/* Define if you have the <unistd.h> header file. */ /* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1
#else
/* MSVC needs an underscore */
#define snprintf _snprintf
#endif #endif
#endif #endif

View File

@ -29,9 +29,15 @@
/************************************************* /*************************************************
* This section is for compiler specific defines.* * 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 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1
#else
/* MSVC needs an underscore */
#define snprintf _snprintf
#endif #endif