diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-12-03 11:53:12 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-12-03 11:53:12 +0000 |
commit | 738ba14cc90436fa71d709f27ba8baa9b97897fc (patch) | |
tree | aa17fb209dc9d79b86e215b6072ed11e00985a81 /src/include/platform_interface.h | |
parent | b7cfbdeaf07b4d10f0f117d9fdf66b9f054a311c (diff) | |
download | libmicrohttpd-738ba14cc90436fa71d709f27ba8baa9b97897fc.tar.gz libmicrohttpd-738ba14cc90436fa71d709f27ba8baa9b97897fc.zip |
Add support for native snprintf() on W32.
Diffstat (limited to 'src/include/platform_interface.h')
-rw-r--r-- | src/include/platform_interface.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/platform_interface.h b/src/include/platform_interface.h index e0493a29..48a7e6f7 100644 --- a/src/include/platform_interface.h +++ b/src/include/platform_interface.h | |||
@@ -73,11 +73,15 @@ | |||
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | /* Platform-independent snprintf name */ | 75 | /* Platform-independent snprintf name */ |
76 | #if !defined(_WIN32) || defined(__CYGWIN__) | 76 | #if defined(HAVE_SNPRINTF) |
77 | #define MHD_snprintf_ snprintf | 77 | #define MHD_snprintf_ snprintf |
78 | #else | 78 | #else /* ! HAVE_SNPRINTF */ |
79 | #if defined(_WIN32) | ||
79 | #define MHD_snprintf_ W32_snprintf | 80 | #define MHD_snprintf_ W32_snprintf |
80 | #endif | 81 | #else /* ! _WIN32*/ |
82 | #error Your platform does not support snprintf() and MHD does not know how to emulate it on your platform. | ||
83 | #endif /* ! _WIN32*/ | ||
84 | #endif /* ! HAVE_SNPRINTF */ | ||
81 | 85 | ||
82 | 86 | ||
83 | /** | 87 | /** |