mirror of
https://github.com/curl/curl.git
synced 2026-06-02 02:44:35 +03:00
fixed the MSVC build.
This commit is contained in:
parent
62f0457961
commit
e7dbbd16a5
2 changed files with 12 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue