diff --git a/mongoose.h b/mongoose.h index 45809380cac73095581ff3cb0f82a296c325fa9b..da3eb44a9a94a8be4eb3ba32535705bac3f019d3 100644 --- a/mongoose.h +++ b/mongoose.h @@ -1266,7 +1266,7 @@ FILE *mg_fopen(const char *path, const char *mode); int mg_open(const char *path, int flag, int mode); #endif /* MG_DISABLE_FILESYSTEM */ -#ifdef _WIN32 +#if defined(_WIN32) && !defined(MG_ENABLE_THREADS) #define MG_ENABLE_THREADS #endif