mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-01 13:10:43 +00:00
Fix #1359 - add conditional for MSVC, _DEBUG and strdup
This commit is contained in:
1 parent
c490ff8ae7
commit
46029c501a
2 files changed
+4
No files matched your search
@@ -418,8 +418,10 @@ typedef enum { false = 0, true = 1 } bool;
|
||||
#ifndef __cplusplus
|
||||
#define snprintf _snprintf
|
||||
#define vsnprintf _vsnprintf
|
||||
#ifndef strdup // For MSVC with _DEBUG, see #1359
|
||||
#define strdup(x) _strdup(x)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef unsigned suseconds_t;
|
||||
typedef int socklen_t;
|
||||
|
||||
@@ -51,8 +51,10 @@ typedef enum { false = 0, true = 1 } bool;
|
||||
#ifndef __cplusplus
|
||||
#define snprintf _snprintf
|
||||
#define vsnprintf _vsnprintf
|
||||
#ifndef strdup // For MSVC with _DEBUG, see #1359
|
||||
#define strdup(x) _strdup(x)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef unsigned suseconds_t;
|
||||
typedef int socklen_t;
|
||||
|
||||
Reference in new issue
Block a user