aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-07 06:45:09 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-07 06:45:09 +0000
commit6d7d5bf7847634a7906e379e08907ec7e2b5f920 (patch)
treee2b94080701788e3f747d132319e53965e5d755f
parenta0b627adc5ff0abe12c35095faf4ff8a8ae11e30 (diff)
downloadlibmicrohttpd-6d7d5bf7847634a7906e379e08907ec7e2b5f920.tar.gz
libmicrohttpd-6d7d5bf7847634a7906e379e08907ec7e2b5f920.zip
The inet_pton() call is only supported in Vista and above. Add define to declare we are compiling for Vista.
-rw-r--r--src/testcurl/test_options.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/testcurl/test_options.c b/src/testcurl/test_options.c
index 79042a46..83aee6fd 100644
--- a/src/testcurl/test_options.c
+++ b/src/testcurl/test_options.c
@@ -19,14 +19,22 @@
19 */ 19 */
20 20
21/** 21/**
22 * @file mhds_get_test.c 22 * @file test_options.c
23 * @brief Testcase for libmicrohttpd HTTPS GET operations 23 * @brief Testcase for libmicrohttpd HTTPS GET operations
24 * @author Sagie Amir 24 * @author Sagie Amir
25 */ 25 */
26
27#include "platform.h" 26#include "platform.h"
28#include "microhttpd.h" 27#include "microhttpd.h"
29 28
29/* inet_pton requires Vista, add defines to declare that we
30 are compiling for Vista */
31#if (defined(__MINGW64__) || defined(__MINGW32__))
32#ifndef _WIN32_WINNT
33#define _WIN32_WINNT 0x0600
34#endif
35#endif
36
37
30#define MHD_E_MEM "Error: memory error\n" 38#define MHD_E_MEM "Error: memory error\n"
31#define MHD_E_SERVER_INIT "Error: failed to start server\n" 39#define MHD_E_SERVER_INIT "Error: failed to start server\n"
32 40