aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile.am2
-rw-r--r--src/include/Makefile.am2
-rw-r--r--src/include/w32functions.h55
-rw-r--r--src/microhttpd/Makefile.am19
-rw-r--r--src/microhttpd/basicauth.c1
-rw-r--r--src/microhttpd/connection.c1
-rw-r--r--src/microhttpd/daemon.c1
-rw-r--r--src/microhttpd/digestauth.c1
-rw-r--r--src/microhttpd/internal.h1
-rw-r--r--src/microhttpd/mhd_compat.c (renamed from src/platform/w32functions.c)35
-rw-r--r--src/microhttpd/mhd_compat.h (renamed from src/include/platform_interface.h)48
-rw-r--r--src/microhttpd/test_postprocessor.c1
-rw-r--r--src/microhttpd/test_postprocessor_large.c1
-rw-r--r--src/platform/Makefile.am20
-rw-r--r--src/testcurl/Makefile.am16
-rw-r--r--src/testcurl/test_get.c1
-rw-r--r--src/testcurl/test_get_sendfile.c1
-rw-r--r--src/testcurl/test_quiesce.c1
-rw-r--r--w32/common/libmicrohttpd-files.vcxproj5
-rw-r--r--w32/common/libmicrohttpd-filters.vcxproj19
21 files changed, 80 insertions, 152 deletions
diff --git a/configure.ac b/configure.ac
index 1ef58edb..f66540ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1076,7 +1076,6 @@ doc/examples/Makefile
1076m4/Makefile 1076m4/Makefile
1077src/Makefile 1077src/Makefile
1078src/include/Makefile 1078src/include/Makefile
1079src/platform/Makefile
1080src/microhttpd/Makefile 1079src/microhttpd/Makefile
1081src/examples/Makefile 1080src/examples/Makefile
1082src/testcurl/Makefile 1081src/testcurl/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 51263449..09af041d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,7 @@ endif
8endif 8endif
9endif 9endif
10 10
11SUBDIRS = include platform microhttpd $(curltests) $(zzuftests) . 11SUBDIRS = include microhttpd $(curltests) $(zzuftests) .
12 12
13if BUILD_EXAMPLES 13if BUILD_EXAMPLES
14SUBDIRS += examples 14SUBDIRS += examples
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
index 42425ad8..24102d94 100644
--- a/src/include/Makefile.am
+++ b/src/include/Makefile.am
@@ -3,4 +3,4 @@ SUBDIRS = .
3 3
4include_HEADERS = microhttpd.h 4include_HEADERS = microhttpd.h
5 5
6EXTRA_DIST = platform.h platform_interface.h w32functions.h autoinit_funcs.h 6EXTRA_DIST = platform.h autoinit_funcs.h
diff --git a/src/include/w32functions.h b/src/include/w32functions.h
deleted file mode 100644
index 0694a381..00000000
--- a/src/include/w32functions.h
+++ /dev/null
@@ -1,55 +0,0 @@
1/*
2 This file is part of libmicrohttpd
3 Copyright (C) 2014 Karlson2k (Evgeny Grin)
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library.
17 If not, see <http://www.gnu.org/licenses/>.
18*/
19
20/**
21 * @file include/w32functions.h
22 * @brief internal functions for W32 systems
23 * @author Karlson2k (Evgeny Grin)
24 */
25
26#ifndef MHD_W32FUNCTIONS_H
27#define MHD_W32FUNCTIONS_H
28#ifndef _WIN32
29#error w32functions.h is designed only for W32 systems
30#endif
31
32#include "platform.h"
33#include <errno.h>
34#include <winsock2.h>
35#include "platform_interface.h"
36
37#ifdef __cplusplus
38extern "C"
39{
40#endif
41
42/**
43 * Generate 31-bit pseudo random number.
44 * Function initialize itself at first call to current time.
45 * @return 31-bit pseudo random number.
46 */
47int MHD_W32_random_(void);
48
49/* Emulate snprintf function on W32 */
50int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ...);
51
52#ifdef __cplusplus
53}
54#endif
55#endif /* MHD_W32FUNCTIONS_H */
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index c72e183f..1e555c18 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -5,10 +5,6 @@ AM_CPPFLAGS = \
5 5
6AM_CFLAGS = $(HIDDEN_VISIBILITY_CFLAGS) 6AM_CFLAGS = $(HIDDEN_VISIBILITY_CFLAGS)
7 7
8if HAVE_W32
9MHD_W32_LIB = $(top_builddir)/src/platform/libplatform_interface.la
10endif
11
12lib_LTLIBRARIES = \ 8lib_LTLIBRARIES = \
13 libmicrohttpd.la 9 libmicrohttpd.la
14 10
@@ -71,6 +67,7 @@ libmicrohttpd_la_SOURCES = \
71 mhd_locks.h \ 67 mhd_locks.h \
72 mhd_sockets.c mhd_sockets.h \ 68 mhd_sockets.c mhd_sockets.h \
73 mhd_itc.c mhd_itc.h \ 69 mhd_itc.c mhd_itc.h \
70 mhd_compat.c mhd_compat.h \
74 response.c response.h 71 response.c response.h
75libmicrohttpd_la_CPPFLAGS = \ 72libmicrohttpd_la_CPPFLAGS = \
76 $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) \ 73 $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) \
@@ -82,9 +79,7 @@ libmicrohttpd_la_LDFLAGS = \
82 $(W32_MHD_LIB_LDFLAGS) \ 79 $(W32_MHD_LIB_LDFLAGS) \
83 -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@ 80 -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@
84libmicrohttpd_la_LIBADD = \ 81libmicrohttpd_la_LIBADD = \
85 $(MHD_W32_LIB) $(MHD_LIBDEPS) 82 $(MHD_LIBDEPS)
86libmicrohttpd_la_DEPENDENCIES = \
87 $(MHD_W32_LIB)
88 83
89if HAVE_W32 84if HAVE_W32
90MHD_DLL_RES_SRC = microhttpd_dll_res.rc 85MHD_DLL_RES_SRC = microhttpd_dll_res.rc
@@ -172,12 +167,11 @@ test_daemon_LDADD = \
172 $(top_builddir)/src/microhttpd/libmicrohttpd.la 167 $(top_builddir)/src/microhttpd/libmicrohttpd.la
173 168
174test_postprocessor_SOURCES = \ 169test_postprocessor_SOURCES = \
175 test_postprocessor.c 170 test_postprocessor.c mhd_compat.c
176test_postprocessor_CPPFLAGS = \ 171test_postprocessor_CPPFLAGS = \
177 $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS) 172 $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS)
178test_postprocessor_LDADD = \ 173test_postprocessor_LDADD = \
179 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 174 $(top_builddir)/src/microhttpd/libmicrohttpd.la
180 $(MHD_W32_LIB)
181 175
182test_postprocessor_amp_SOURCES = \ 176test_postprocessor_amp_SOURCES = \
183 test_postprocessor_amp.c 177 test_postprocessor_amp.c
@@ -187,12 +181,11 @@ test_postprocessor_amp_LDADD = \
187 $(top_builddir)/src/microhttpd/libmicrohttpd.la 181 $(top_builddir)/src/microhttpd/libmicrohttpd.la
188 182
189test_postprocessor_large_SOURCES = \ 183test_postprocessor_large_SOURCES = \
190 test_postprocessor_large.c 184 test_postprocessor_large.c mhd_compat.c
191test_postprocessor_large_CPPFLAGS = \ 185test_postprocessor_large_CPPFLAGS = \
192 $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS) 186 $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS)
193test_postprocessor_large_LDADD = \ 187test_postprocessor_large_LDADD = \
194 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 188 $(top_builddir)/src/microhttpd/libmicrohttpd.la
195 $(MHD_W32_LIB)
196 189
197test_shutdown_select_SOURCES = \ 190test_shutdown_select_SOURCES = \
198 test_shutdown_select.c 191 test_shutdown_select.c
diff --git a/src/microhttpd/basicauth.c b/src/microhttpd/basicauth.c
index 9d116751..7acae6af 100644
--- a/src/microhttpd/basicauth.c
+++ b/src/microhttpd/basicauth.c
@@ -26,6 +26,7 @@
26#include <limits.h> 26#include <limits.h>
27#include "internal.h" 27#include "internal.h"
28#include "base64.h" 28#include "base64.h"
29#include "mhd_compat.h"
29 30
30/** 31/**
31 * Beginning string for any valid Basic authentication header. 32 * Beginning string for any valid Basic authentication header.
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 037a33ff..2c799d16 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -33,6 +33,7 @@
33#include "mhd_str.h" 33#include "mhd_str.h"
34#include "mhd_locks.h" 34#include "mhd_locks.h"
35#include "mhd_sockets.h" 35#include "mhd_sockets.h"
36#include "mhd_compat.h"
36 37
37 38
38/** 39/**
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index d5c00e57..7a784daf 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -36,6 +36,7 @@
36#include "mhd_locks.h" 36#include "mhd_locks.h"
37#include "mhd_sockets.h" 37#include "mhd_sockets.h"
38#include "mhd_itc.h" 38#include "mhd_itc.h"
39#include "mhd_compat.h"
39 40
40#if HAVE_SEARCH_H 41#if HAVE_SEARCH_H
41#include <search.h> 42#include <search.h>
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 9a9d9e6a..5005bf2a 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -28,6 +28,7 @@
28#include "md5.h" 28#include "md5.h"
29#include "mhd_mono_clock.h" 29#include "mhd_mono_clock.h"
30#include "mhd_str.h" 30#include "mhd_str.h"
31#include "mhd_compat.h"
31 32
32#if defined(_WIN32) && defined(MHD_W32_MUTEX_) 33#if defined(_WIN32) && defined(MHD_W32_MUTEX_)
33#ifndef WIN32_LEAN_AND_MEAN 34#ifndef WIN32_LEAN_AND_MEAN
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 0f70026f..40621e2d 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -29,7 +29,6 @@
29 29
30#include "platform.h" 30#include "platform.h"
31#include "microhttpd.h" 31#include "microhttpd.h"
32#include "platform_interface.h"
33#if HTTPS_SUPPORT 32#if HTTPS_SUPPORT
34#include <gnutls/gnutls.h> 33#include <gnutls/gnutls.h>
35#if GNUTLS_VERSION_MAJOR >= 3 34#if GNUTLS_VERSION_MAJOR >= 3
diff --git a/src/platform/w32functions.c b/src/microhttpd/mhd_compat.c
index 6fec7a3c..4911a1c6 100644
--- a/src/platform/w32functions.c
+++ b/src/microhttpd/mhd_compat.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of libmicrohttpd 2 This file is part of libmicrohttpd
3 Copyright (C) 2014 Karlson2k (Evgeny Grin) 3 Copyright (C) 2014-2016 Karlson2k (Evgeny Grin)
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
@@ -13,27 +13,44 @@
13 Lesser General Public License for more details. 13 Lesser General Public License for more details.
14 14
15 You should have received a copy of the GNU Lesser General Public 15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. 16 License along with this library; if not, write to the Free Software
17 If not, see <http://www.gnu.org/licenses/>. 17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18*/ 19*/
19 20
20/** 21/**
21 * @file platform/w32functions.h 22 * @file microhttpd/mhd_compat.c
22 * @brief internal functions for W32 systems 23 * @brief Implementation of platform missing functions.
23 * @author Karlson2k (Evgeny Grin) 24 * @author Karlson2k (Evgeny Grin)
24 */ 25 */
25 26
26#include "w32functions.h" 27#include "mhd_compat.h"
27#include <string.h> 28#if defined(_WIN32) && !defined(__CYGWIN__)
28#include <stdint.h> 29#include <stdint.h>
29#include <time.h> 30#include <time.h>
31#ifndef HAVE_SNPRINTF
30#include <stdio.h> 32#include <stdio.h>
31#include <stdarg.h> 33#include <stdarg.h>
34#endif /* HAVE_SNPRINTF */
35#endif /* _WIN32 && !__CYGWIN__ */
36
32 37
33/** 38/**
39 * Dummy function to silent compiler warning on empty file
40 * @return zero
41 */
42static int
43static_dummy_func(void)
44{
45 return 0;
46}
47
48#if defined(_WIN32) && !defined(__CYGWIN__)
49/**
34 * Static variable used by pseudo random number generator 50 * Static variable used by pseudo random number generator
35 */ 51 */
36static int32_t rnd_val = 0; 52static int32_t rnd_val = 0;
53
37/** 54/**
38 * Generate 31-bit pseudo random number. 55 * Generate 31-bit pseudo random number.
39 * Function initialize itself at first call to current time. 56 * Function initialize itself at first call to current time.
@@ -49,6 +66,8 @@ int MHD_W32_random_(void)
49 return (int)rnd_val; 66 return (int)rnd_val;
50} 67}
51 68
69
70#ifndef HAVE_SNPRINTF
52/* Emulate snprintf function on W32 */ 71/* Emulate snprintf function on W32 */
53int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ...) 72int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ...)
54{ 73{
@@ -72,3 +91,5 @@ int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ..
72 91
73 return ret; 92 return ret;
74} 93}
94#endif /* HAVE_SNPRINTF */
95#endif /* _WIN32 && !__CYGWIN__ */
diff --git a/src/include/platform_interface.h b/src/microhttpd/mhd_compat.h
index b641a002..7fe3c735 100644
--- a/src/include/platform_interface.h
+++ b/src/microhttpd/mhd_compat.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of libmicrohttpd 2 This file is part of libmicrohttpd
3 Copyright (C) 2014 Karlson2k (Evgeny Grin) 3 Copyright (C) 2014-2016 Karlson2k (Evgeny Grin)
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
@@ -13,33 +13,36 @@
13 Lesser General Public License for more details. 13 Lesser General Public License for more details.
14 14
15 You should have received a copy of the GNU Lesser General Public 15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. 16 License along with this library; if not, write to the Free Software
17 If not, see <http://www.gnu.org/licenses/>. 17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18*/ 19*/
19 20
20/** 21/**
21 * @file include/platform_interface.h 22 * @file microhttpd/mhd_compat.h
22 * @brief internal platform abstraction functions 23 * @brief Header for platform missing functions.
23 * @author Karlson2k (Evgeny Grin) 24 * @author Karlson2k (Evgeny Grin)
25 *
26 * Provides compatibility for platforms with some missing
27 * functionality.
28 * Any functions can be implemented as macro on some platforms
29 * unless explicitly marked otherwise.
30 * Any function argument can be skipped in macro, so avoid
31 * variable modification in function parameters.
24 */ 32 */
25 33
26#ifndef MHD_PLATFORM_INTERFACE_H 34#ifndef MHD_COMPAT_H
27#define MHD_PLATFORM_INTERFACE_H 35#define MHD_COMPAT_H 1
28
29#include "platform.h"
30#if defined(_WIN32) && !defined(__CYGWIN__)
31#include "w32functions.h"
32#endif
33 36
34/* ***************************** 37#include "mhd_options.h"
35 General function mapping
36 *****************************/
37 38
38/* Platform-independent snprintf name */ 39/* Platform-independent snprintf name */
39#if defined(HAVE_SNPRINTF) 40#if defined(HAVE_SNPRINTF)
40#define MHD_snprintf_ snprintf 41#define MHD_snprintf_ snprintf
41#else /* ! HAVE_SNPRINTF */ 42#else /* ! HAVE_SNPRINTF */
42#if defined(_WIN32) 43#if defined(_WIN32)
44/* Emulate snprintf function on W32 */
45int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ...);
43#define MHD_snprintf_ W32_snprintf 46#define MHD_snprintf_ W32_snprintf
44#else /* ! _WIN32*/ 47#else /* ! _WIN32*/
45#error Your platform does not support snprintf() and MHD does not know how to emulate it on your platform. 48#error Your platform does not support snprintf() and MHD does not know how to emulate it on your platform.
@@ -48,8 +51,17 @@
48 51
49#if !defined(_WIN32) || defined(__CYGWIN__) 52#if !defined(_WIN32) || defined(__CYGWIN__)
50#define MHD_random_() random() 53#define MHD_random_() random()
51#else 54#else /* _WIN32 && !__CYGWIN__ */
52#define MHD_random_() MHD_W32_random_() 55#define MHD_random_() MHD_W32_random_()
53#endif
54 56
55#endif /* MHD_PLATFORM_INTERFACE_H */ 57/**
58 * Generate 31-bit pseudo random number.
59 * Function initialize itself at first call to current time.
60 * @return 31-bit pseudo random number.
61 */
62int MHD_W32_random_(void);
63#endif /* _WIN32 && !__CYGWIN__ */
64
65
66
67#endif /* MHD_COMPAT_H */
diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c
index 5a811c2b..e3a4d4c4 100644
--- a/src/microhttpd/test_postprocessor.c
+++ b/src/microhttpd/test_postprocessor.c
@@ -30,6 +30,7 @@
30#include <stdlib.h> 30#include <stdlib.h>
31#include <string.h> 31#include <string.h>
32#include <stdio.h> 32#include <stdio.h>
33#include "mhd_compat.h"
33 34
34#ifndef WINDOWS 35#ifndef WINDOWS
35#include <unistd.h> 36#include <unistd.h>
diff --git a/src/microhttpd/test_postprocessor_large.c b/src/microhttpd/test_postprocessor_large.c
index 4b9e06ae..a509a7ba 100644
--- a/src/microhttpd/test_postprocessor_large.c
+++ b/src/microhttpd/test_postprocessor_large.c
@@ -27,6 +27,7 @@
27#include "platform.h" 27#include "platform.h"
28#include "microhttpd.h" 28#include "microhttpd.h"
29#include "internal.h" 29#include "internal.h"
30#include "mhd_compat.h"
30 31
31#ifndef WINDOWS 32#ifndef WINDOWS
32#include <unistd.h> 33#include <unistd.h>
diff --git a/src/platform/Makefile.am b/src/platform/Makefile.am
deleted file mode 100644
index 448efae3..00000000
--- a/src/platform/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
1# This Makefile.am is in the public domain
2AM_CPPFLAGS = \
3 -I$(top_srcdir)/src/include
4
5AM_CFLAGS = $(HIDDEN_VISIBILITY_CFLAGS)
6
7if USE_COVERAGE
8 AM_CFLAGS += --coverage
9endif
10
11if HAVE_W32
12noinst_LTLIBRARIES = \
13 libplatform_interface.la
14libplatform_interface_la_CPPFLAGS = \
15 $(AM_CPPFLAGS) \
16 -DBUILDING_MHD_LIB=1
17libplatform_interface_la_SOURCES = \
18 w32functions.c
19endif
20
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am
index 47ebda5a..55f35ee7 100644
--- a/src/testcurl/Makefile.am
+++ b/src/testcurl/Makefile.am
@@ -152,14 +152,6 @@ test_get_sendfile_SOURCES = \
152test_get_sendfile_LDADD = \ 152test_get_sendfile_LDADD = \
153 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 153 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
154 @LIBCURL@ 154 @LIBCURL@
155test_get_sendfile_DEPENDENCIES =
156
157if HAVE_W32
158test_get_sendfile_LDADD += \
159 $(top_builddir)/src/platform/libplatform_interface.la
160test_get_sendfile_DEPENDENCIES += \
161 $(top_builddir)/src/platform/libplatform_interface.la
162endif
163 155
164test_urlparse_SOURCES = \ 156test_urlparse_SOURCES = \
165 test_urlparse.c 157 test_urlparse.c
@@ -237,14 +229,6 @@ test_get_sendfile11_SOURCES = \
237test_get_sendfile11_LDADD = \ 229test_get_sendfile11_LDADD = \
238 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 230 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
239 @LIBCURL@ 231 @LIBCURL@
240test_get_sendfile11_DEPENDENCIES =
241
242if HAVE_W32
243test_get_sendfile11_LDADD += \
244 $(top_builddir)/src/platform/libplatform_interface.la
245test_get_sendfile11_DEPENDENCIES += \
246 $(top_builddir)/src/platform/libplatform_interface.la
247endif
248 232
249test_post11_SOURCES = \ 233test_post11_SOURCES = \
250 test_post.c 234 test_post.c
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index b9d12816..892bd243 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -27,7 +27,6 @@
27 27
28#include "MHD_config.h" 28#include "MHD_config.h"
29#include "platform.h" 29#include "platform.h"
30#include "platform_interface.h"
31#include <curl/curl.h> 30#include <curl/curl.h>
32#include <microhttpd.h> 31#include <microhttpd.h>
33#include <stdlib.h> 32#include <stdlib.h>
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
index 19e327fd..d222a189 100644
--- a/src/testcurl/test_get_sendfile.c
+++ b/src/testcurl/test_get_sendfile.c
@@ -25,7 +25,6 @@
25 25
26#include "MHD_config.h" 26#include "MHD_config.h"
27#include "platform.h" 27#include "platform.h"
28#include "platform_interface.h"
29#include <curl/curl.h> 28#include <curl/curl.h>
30#include <microhttpd.h> 29#include <microhttpd.h>
31#include <stdlib.h> 30#include <stdlib.h>
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index b0d99494..f4002348 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -25,7 +25,6 @@
25 25
26#include "MHD_config.h" 26#include "MHD_config.h"
27#include "platform.h" 27#include "platform.h"
28#include "platform_interface.h"
29#include <curl/curl.h> 28#include <curl/curl.h>
30#include <microhttpd.h> 29#include <microhttpd.h>
31#include <stdlib.h> 30#include <stdlib.h>
diff --git a/w32/common/libmicrohttpd-files.vcxproj b/w32/common/libmicrohttpd-files.vcxproj
index fa75b6ad..2a615196 100644
--- a/w32/common/libmicrohttpd-files.vcxproj
+++ b/w32/common/libmicrohttpd-files.vcxproj
@@ -19,15 +19,13 @@
19 <ClCompile Include="$(MhdSrc)microhttpd\mhd_threads.c" /> 19 <ClCompile Include="$(MhdSrc)microhttpd\mhd_threads.c" />
20 <ClCompile Include="$(MhdSrc)microhttpd\mhd_sockets.c" /> 20 <ClCompile Include="$(MhdSrc)microhttpd\mhd_sockets.c" />
21 <ClCompile Include="$(MhdSrc)microhttpd\mhd_itc.c" /> 21 <ClCompile Include="$(MhdSrc)microhttpd\mhd_itc.c" />
22 <ClCompile Include="$(MhdSrc)platform\w32functions.c" /> 22 <ClCompile Include="$(MhdSrc)microhttpd\mhd_compat.c" />
23 </ItemGroup> 23 </ItemGroup>
24 <ItemGroup> 24 <ItemGroup>
25 <ClInclude Include="$(MhdSrc)include\autoinit_funcs.h" /> 25 <ClInclude Include="$(MhdSrc)include\autoinit_funcs.h" />
26 <ClInclude Include="$(MhdSrc)include\microhttpd.h" /> 26 <ClInclude Include="$(MhdSrc)include\microhttpd.h" />
27 <ClInclude Include="$(MhdSrc)include\mhd_options.h" /> 27 <ClInclude Include="$(MhdSrc)include\mhd_options.h" />
28 <ClInclude Include="$(MhdSrc)include\platform.h" /> 28 <ClInclude Include="$(MhdSrc)include\platform.h" />
29 <ClInclude Include="$(MhdSrc)include\platform_interface.h" />
30 <ClInclude Include="$(MhdSrc)include\w32functions.h" />
31 <ClInclude Include="$(MhdSrc)microhttpd\base64.h" /> 29 <ClInclude Include="$(MhdSrc)microhttpd\base64.h" />
32 <ClInclude Include="$(MhdSrc)microhttpd\connection.h" /> 30 <ClInclude Include="$(MhdSrc)microhttpd\connection.h" />
33 <ClInclude Include="$(MhdSrc)microhttpd\internal.h" /> 31 <ClInclude Include="$(MhdSrc)microhttpd\internal.h" />
@@ -44,6 +42,7 @@
44 <ClInclude Include="$(MhdSrc)microhttpd\mhd_locks.h" /> 42 <ClInclude Include="$(MhdSrc)microhttpd\mhd_locks.h" />
45 <ClInclude Include="$(MhdSrc)microhttpd\mhd_sockets.h" /> 43 <ClInclude Include="$(MhdSrc)microhttpd\mhd_sockets.h" />
46 <ClInclude Include="$(MhdSrc)microhttpd\mhd_itc.h" /> 44 <ClInclude Include="$(MhdSrc)microhttpd\mhd_itc.h" />
45 <ClInclude Include="$(MhdSrc)microhttpd\mhd_compat.h" />
47 <ClInclude Include="$(MhdW32Common)MHD_config.h" /> 46 <ClInclude Include="$(MhdW32Common)MHD_config.h" />
48 </ItemGroup> 47 </ItemGroup>
49 <ItemGroup> 48 <ItemGroup>
diff --git a/w32/common/libmicrohttpd-filters.vcxproj b/w32/common/libmicrohttpd-filters.vcxproj
index 11782d00..2bb47bfd 100644
--- a/w32/common/libmicrohttpd-filters.vcxproj
+++ b/w32/common/libmicrohttpd-filters.vcxproj
@@ -13,10 +13,6 @@
13 <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> 13 <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> 14 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15 </Filter> 15 </Filter>
16 <Filter Include="Source Files\platform_interface">
17 <UniqueIdentifier>{af799bf7-9787-4134-8e56-9e5aae50c7e3}</UniqueIdentifier>
18 <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
19 </Filter>
20 <Filter Include="Template Files"> 16 <Filter Include="Template Files">
21 <UniqueIdentifier>{df5ad836-e372-437b-a0e3-299d3675d6b4}</UniqueIdentifier> 17 <UniqueIdentifier>{df5ad836-e372-437b-a0e3-299d3675d6b4}</UniqueIdentifier>
22 <Extensions>in</Extensions> 18 <Extensions>in</Extensions>
@@ -32,21 +28,12 @@
32 <ClInclude Include="$(MhdSrc)include\platform.h"> 28 <ClInclude Include="$(MhdSrc)include\platform.h">
33 <Filter>Header Files</Filter> 29 <Filter>Header Files</Filter>
34 </ClInclude> 30 </ClInclude>
35 <ClInclude Include="$(MhdSrc)include\platform_interface.h">
36 <Filter>Header Files</Filter>
37 </ClInclude>
38 <ClInclude Include="$(MhdSrc)include\w32functions.h">
39 <Filter>Header Files</Filter>
40 </ClInclude>
41 <ClInclude Include="$(MhdSrc)include\mhd_options.h"> 31 <ClInclude Include="$(MhdSrc)include\mhd_options.h">
42 <Filter>Header Files</Filter> 32 <Filter>Header Files</Filter>
43 </ClInclude> 33 </ClInclude>
44 <ClInclude Include="$(MhdW32Common)MHD_config.h"> 34 <ClInclude Include="$(MhdW32Common)MHD_config.h">
45 <Filter>Header Files</Filter> 35 <Filter>Header Files</Filter>
46 </ClInclude> 36 </ClInclude>
47 <ClCompile Include="$(MhdSrc)platform\w32functions.c">
48 <Filter>Source Files\platform_interface</Filter>
49 </ClCompile>
50 </ItemGroup> 37 </ItemGroup>
51 <ItemGroup> 38 <ItemGroup>
52 <ClCompile Include="$(MhdSrc)microhttpd\base64.c"> 39 <ClCompile Include="$(MhdSrc)microhttpd\base64.c">
@@ -151,6 +138,12 @@
151 <ClCompile Include="$(MhdSrc)microhttpd\mhd_itc.c"> 138 <ClCompile Include="$(MhdSrc)microhttpd\mhd_itc.c">
152 <Filter>Source Files</Filter> 139 <Filter>Source Files</Filter>
153 </ClCompile> 140 </ClCompile>
141 <ClInclude Include="$(MhdSrc)microhttpd\mhd_compat.h">
142 <Filter>Source Files</Filter>
143 </ClInclude>
144 <ClCompile Include="$(MhdSrc)microhttpd\mhd_compat.c">
145 <Filter>Source Files</Filter>
146 </ClCompile>
154 </ItemGroup> 147 </ItemGroup>
155 <ItemGroup> 148 <ItemGroup>
156 <ResourceCompile Include="$(MhdW32Common)microhttpd_dll_res_vc.rc"> 149 <ResourceCompile Include="$(MhdW32Common)microhttpd_dll_res_vc.rc">