diff --git a/mongoose.h b/mongoose.h index 55a964d3..2336eb38 100644 --- a/mongoose.h +++ b/mongoose.h @@ -467,7 +467,7 @@ FILE *mg_fopen(const char *fp, const char *mode); #if !defined(WEAK) #if (defined(__GNUC__) || defined(__clang__) || \ defined(__TI_COMPILER_VERSION__)) && \ - !defined(_WIN32) + !defined(_WIN32) && !defined(__CYGWIN__) #define WEAK __attribute__((weak)) #else #define WEAK diff --git a/src/util.h b/src/util.h index 9b46a1a7..52f243a3 100644 --- a/src/util.h +++ b/src/util.h @@ -43,7 +43,7 @@ FILE *mg_fopen(const char *fp, const char *mode); #if !defined(WEAK) #if (defined(__GNUC__) || defined(__clang__) || \ defined(__TI_COMPILER_VERSION__)) && \ - !defined(_WIN32) + !defined(_WIN32) && !defined(__CYGWIN__) #define WEAK __attribute__((weak)) #else #define WEAK