Guarded #define EINPROGRESS

This commit is contained in:
Sergey Lyubka committed 2014-01-20 09:02:57 +00:00
1 parent 8208d9e250
commit 1109d3aa3c
1 file changed
+2
+2
View File
@@ -64,7 +64,9 @@ typedef struct _stati64 file_stat_t;
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#define INT64_FMT "I64d"
#ifndef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS
#endif
#define mutex_init(x) InitializeCriticalSection(x)
#define mutex_destroy(x) DeleteCriticalSection(x)
#define mutex_lock(x) EnterCriticalSection(x)