Squash some warnings under mingw crosscompiler

This commit is contained in:
cpq committed 2020-12-24 07:26:50 +00:00
1 parent 4d123a15f9
commit 25bc13ef1e
4 files changed
+10 -6

No files matched your search

+3 -2
View File
@@ -28,8 +28,10 @@ enum { false = 0, true = 1 };
#endif
typedef int socklen_t;
#define PATH_MAX MAX_PATH
#define MG_DIRSEP '\\'
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#endif
#ifndef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS
#endif
@@ -44,7 +46,6 @@ typedef int socklen_t;
#define va_copy(x, y) (x) = (y)
#endif
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
#endif