commit 932cc4c336fb6fc9a18ec1c675c06e585c02878b
parent 9c0c27b1a8c5162f38eec67f0a75713add057920
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sun, 21 Dec 2025 18:17:15 +0100
Revert "try again to avoid double-definition problem"
This reverts commit e3f1cc20b108c58455dd1d61d1f82f91291ecacf.
Diffstat:
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/src/incl_priv/mhd_sys_options.h b/src/incl_priv/mhd_sys_options.h
@@ -52,6 +52,10 @@
#ifndef MHD_SYS_OPTIONS_H
#define MHD_SYS_OPTIONS_H 1
+// FIXME-Evgeny: both of these headers define some of the
+// very same MHD-macros. We should avoid this.
+#ifndef MICROHTTPD2_PORTABILITY_H
+
#ifndef HAVE_CONFIG_H
# ifndef _MSC_VER
@@ -90,11 +94,6 @@
# define MHD_EXPORTED __declspec(dllexport)
#endif
-// FIXME-Evgeny: both of these headers define some of the
-// very same MHD-macros. We should avoid this.
-#ifndef MICROHTTPD2_PORTABILITY_H
-
-
#if defined(HAVE_ATTR_USED) \
&& (defined(PIC) || defined(DLL_EXPORT) || defined(MHD_W32DLL))
/* Used externally, only for functions in shared library */
@@ -251,16 +250,12 @@
# define MHD_FN_PAR_DYN_ARR_SIZE_(size) 1
#endif
-#endif /* MICROHTTPD2_PORTABILITY_H */
-
-
#ifdef HAVE_ATTR_FUNC_ASSUME_ALIGNED
# define mhd_FN_RET_ALIGNED(align) __attribute__((assume_aligned (align)))
#else
# define mhd_FN_RET_ALIGNED(align) /* empty */
#endif
-
#ifdef HAVE_ATTR_FUNC_ALLOC_SIZE
/**
* Indicates that returned pointer points to object with the size specified
@@ -696,4 +691,6 @@
# undef HAVE_CONFIG_H
#endif
+#endif /* MICROHTTPD2_PORTABILITY_H */
+
#endif /* MHD_SYS_OPTIONS_H */