mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +00:00
Fix MinGW compilation
PUBLISHED_FROM=66b2dee87dc50de5f2891dee789beec89c3f6fb4
This commit is contained in:
1 parent
511c9a6d4a
commit
57a4ec31d1
1 file changed
+2
-1
+2
-1
@@ -195,6 +195,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma comment(lib, "ws2_32.lib") /* Linking with winsock library */
|
#pragma comment(lib, "ws2_32.lib") /* Linking with winsock library */
|
||||||
@@ -221,13 +222,13 @@
|
|||||||
#define __func__ __FILE__ ":" STR(__LINE__)
|
#define __func__ __FILE__ ":" STR(__LINE__)
|
||||||
#endif
|
#endif
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#define fileno _fileno
|
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
#define sleep(x) Sleep((x) *1000)
|
#define sleep(x) Sleep((x) *1000)
|
||||||
#define to64(x) _atoi64(x)
|
#define to64(x) _atoi64(x)
|
||||||
#if !defined(__MINGW32__) && !defined(__MINGW64__)
|
#if !defined(__MINGW32__) && !defined(__MINGW64__)
|
||||||
#define popen(x, y) _popen((x), (y))
|
#define popen(x, y) _popen((x), (y))
|
||||||
#define pclose(x) _pclose(x)
|
#define pclose(x) _pclose(x)
|
||||||
|
#define fileno _fileno
|
||||||
#endif
|
#endif
|
||||||
#define rmdir _rmdir
|
#define rmdir _rmdir
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||||
|
|||||||
Reference in new issue
Block a user