From 1109d3aa3cdf03b3fce186abb1bd2346b5e6c3ed Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Mon, 20 Jan 2014 09:02:57 +0000 Subject: [PATCH] Guarded #define EINPROGRESS --- mongoose.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mongoose.c b/mongoose.c index 4dc2ab10e..929cd759b 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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) -- GitLab