diff options
Diffstat (limited to 'liblog/log_read.c')
-rw-r--r-- | liblog/log_read.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/liblog/log_read.c b/liblog/log_read.c index 2f21a5d..dbed886 100644 --- a/liblog/log_read.c +++ b/liblog/log_read.c @@ -34,7 +34,11 @@ /* branchless on many architectures. */ #define min(x,y) ((y) ^ (((x) ^ (y)) & -((x) < (y)))) +#if (defined(USE_MINGW) || defined(HAVE_WINSOCK)) +#define WEAK static +#else #define WEAK __attribute__((weak)) +#endif #ifndef __unused #define __unused __attribute__((unused)) #endif |