mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Fixed Windows build.
This commit is contained in:
@@ -34,16 +34,17 @@
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#include <varargs.h>
|
|
||||||
|
|
||||||
/** Imitate define of inttypes.h */
|
/** Imitate define of inttypes.h */
|
||||||
#define PRIdS "Id"
|
#define PRIdS "Id"
|
||||||
|
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
#define strncasecmp _strnicmp
|
#define strncasecmp _strnicmp
|
||||||
#define strtoull _strtoui64
|
#define strtoull _strtoui64
|
||||||
#define isblank(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n' || (ch) == '\r')
|
#define isblank(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n' || (ch) == '\r')
|
||||||
|
|
||||||
|
#if _MSC_VER >= 1400
|
||||||
#define strdup _strdup
|
#define strdup _strdup
|
||||||
|
#endif
|
||||||
#define usleep(X) Sleep(((X)+1000)/1000)
|
#define usleep(X) Sleep(((X)+1000)/1000)
|
||||||
|
|
||||||
#undef strtok_r
|
#undef strtok_r
|
||||||
|
|||||||
Reference in New Issue
Block a user