diff options
Diffstat (limited to 'src/microhttpd/mhd_compat.h')
-rw-r--r-- | src/microhttpd/mhd_compat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_compat.h b/src/microhttpd/mhd_compat.h index fca84b84..b4e2c66c 100644 --- a/src/microhttpd/mhd_compat.h +++ b/src/microhttpd/mhd_compat.h | |||
@@ -47,13 +47,13 @@ | |||
47 | #if defined(HAVE_SNPRINTF) | 47 | #if defined(HAVE_SNPRINTF) |
48 | #define MHD_snprintf_ snprintf | 48 | #define MHD_snprintf_ snprintf |
49 | #else /* ! HAVE_SNPRINTF */ | 49 | #else /* ! HAVE_SNPRINTF */ |
50 | #if defined(_WIN32) | 50 | #if defined(_WIN32) && ! defined(__CYGWIN__) |
51 | /* Emulate snprintf function on W32 */ | 51 | /* Emulate snprintf function on W32 */ |
52 | int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ...); | 52 | int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ...); |
53 | #define MHD_snprintf_ W32_snprintf | 53 | #define MHD_snprintf_ W32_snprintf |
54 | #else /* ! _WIN32*/ | 54 | #else /* ! _WIN32 || __CYGWIN__ */ |
55 | #error Your platform does not support snprintf() and MHD does not know how to emulate it on your platform. | 55 | #error Your platform does not support snprintf() and MHD does not know how to emulate it on your platform. |
56 | #endif /* ! _WIN32*/ | 56 | #endif /* ! _WIN32 || __CYGWIN__ */ |
57 | #endif /* ! HAVE_SNPRINTF */ | 57 | #endif /* ! HAVE_SNPRINTF */ |
58 | 58 | ||
59 | #ifdef HAVE_RANDOM | 59 | #ifdef HAVE_RANDOM |