mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Define WEAK to nothing on Cygwin
This commit is contained in:
1 parent
79e5841483
commit
e710df4c80
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user