summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-10-24 11:39:33 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-10-24 11:39:33 +0300
commit276f601ffc09718c6afbef3b9972336fed54a150 (patch)
treef379c40878a89ec7e354b8bdd494916dcf30bc37
parent18c2ad66c72fbc8ed94fbaceb62274a1ee3e603c (diff)
Fixed: include "MHD_config.h" before other headers to set correct macros
-rw-r--r--src/microhttpd/mhd_align.h2
-rw-r--r--src/microhttpd/mhd_bithelpers.h2
-rw-r--r--src/microhttpd/test_str_token_remove.c2
-rw-r--r--src/microhttpd/test_str_tokens_remove.c2
-rw-r--r--src/microhttpd/tsearch.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/microhttpd/mhd_align.h b/src/microhttpd/mhd_align.h
index 4169236f..47e9f199 100644
--- a/src/microhttpd/mhd_align.h
+++ b/src/microhttpd/mhd_align.h
@@ -26,8 +26,8 @@
#ifndef MHD_ALIGN_H
#define MHD_ALIGN_H 1
-#include <stdint.h>
#include "mhd_options.h"
+#include <stdint.h>
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
diff --git a/src/microhttpd/mhd_bithelpers.h b/src/microhttpd/mhd_bithelpers.h
index eace0eb9..8f7058a8 100644
--- a/src/microhttpd/mhd_bithelpers.h
+++ b/src/microhttpd/mhd_bithelpers.h
@@ -26,13 +26,13 @@
#ifndef MHD_BITHELPERS_H
#define MHD_BITHELPERS_H 1
+#include "mhd_options.h"
#include <stdint.h>
#if defined(_MSC_FULL_VER) && (! defined(__clang__) || (defined(__c2__) && \
defined(__OPTIMIZE__)))
/* Declarations for VC & Clang/C2 built-ins */
#include <intrin.h>
#endif /* _MSC_FULL_VER */
-#include "mhd_options.h"
#include "mhd_assert.h"
#include "mhd_byteorder.h"
#if _MHD_BYTE_ORDER == _MHD_LITTLE_ENDIAN || _MHD_BYTE_ORDER == _MHD_BIG_ENDIAN
diff --git a/src/microhttpd/test_str_token_remove.c b/src/microhttpd/test_str_token_remove.c
index af1e7527..8334ba97 100644
--- a/src/microhttpd/test_str_token_remove.c
+++ b/src/microhttpd/test_str_token_remove.c
@@ -23,9 +23,9 @@
* @author Karlson2k (Evgeny Grin)
*/
+#include "mhd_options.h"
#include <string.h>
#include <stdio.h>
-#include "mhd_options.h"
#include "mhd_str.h"
#include "mhd_assert.h"
diff --git a/src/microhttpd/test_str_tokens_remove.c b/src/microhttpd/test_str_tokens_remove.c
index b14ed908..f5347868 100644
--- a/src/microhttpd/test_str_tokens_remove.c
+++ b/src/microhttpd/test_str_tokens_remove.c
@@ -23,9 +23,9 @@
* @author Karlson2k (Evgeny Grin)
*/
+#include "mhd_options.h"
#include <string.h>
#include <stdio.h>
-#include "mhd_options.h"
#include "mhd_str.h"
#include "mhd_assert.h"
diff --git a/src/microhttpd/tsearch.c b/src/microhttpd/tsearch.c
index 0a65ce94..26a5c769 100644
--- a/src/microhttpd/tsearch.c
+++ b/src/microhttpd/tsearch.c
@@ -9,8 +9,8 @@
* Totally public domain.
*/
-#include "tsearch.h"
#include "mhd_options.h"
+#include "tsearch.h"
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#else /* ! HAVE_STDDEF_H */