commit 276f601ffc09718c6afbef3b9972336fed54a150
parent 18c2ad66c72fbc8ed94fbaceb62274a1ee3e603c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 24 Oct 2021 11:39:33 +0300
Fixed: include "MHD_config.h" before other headers to set correct macros
Diffstat:
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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
@@ -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 */