Define WEAK to nothing on Cygwin

This commit is contained in:
cpq 2021-03-04 14:25:50 +00:00
parent 79e5841483
commit e710df4c80
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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