Define WEAK to nothing on Cygwin

This commit is contained in:
cpq committed 2021-03-04 14:25:50 +00:00
1 parent 79e5841483
commit e710df4c80
2 files changed
+2 -2

No files matched your search

+1 -1
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
+1 -1
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