mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
fixed the MSVC build.
This commit is contained in:
parent
62f0457961
commit
e7dbbd16a5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user