aboutsummaryrefslogtreecommitdiff
path: root/src/include/mhd_options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/mhd_options.h')
-rw-r--r--src/include/mhd_options.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h
index 47b7ce0e..26ab49e1 100644
--- a/src/include/mhd_options.h
+++ b/src/include/mhd_options.h
@@ -45,7 +45,7 @@
45 45
46#ifndef _MHD_EXTERN 46#ifndef _MHD_EXTERN
47#if defined(BUILDING_MHD_LIB) && defined(_WIN32) && \ 47#if defined(BUILDING_MHD_LIB) && defined(_WIN32) && \
48 (defined(DLL_EXPORT) || defined(MHD_W32DLL)) 48 (defined(DLL_EXPORT) || defined(MHD_W32DLL))
49#define _MHD_EXTERN __declspec(dllexport) extern 49#define _MHD_EXTERN __declspec(dllexport) extern
50#else /* !BUILDING_MHD_LIB || !_WIN32 || (!DLL_EXPORT && !MHD_W32DLL) */ 50#else /* !BUILDING_MHD_LIB || !_WIN32 || (!DLL_EXPORT && !MHD_W32DLL) */
51#define _MHD_EXTERN extern 51#define _MHD_EXTERN extern
@@ -66,7 +66,7 @@
66#endif /* !FD_SETSIZE && !W32 */ 66#endif /* !FD_SETSIZE && !W32 */
67 67
68#if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_FREEBSD_SENDFILE) || \ 68#if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_FREEBSD_SENDFILE) || \
69 defined(HAVE_DARWIN_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE) 69 defined(HAVE_DARWIN_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE)
70/* Have any supported sendfile() function. */ 70/* Have any supported sendfile() function. */
71#define _MHD_HAVE_SENDFILE 71#define _MHD_HAVE_SENDFILE
72#endif /* HAVE_LINUX_SENDFILE || HAVE_FREEBSD_SENDFILE || 72#endif /* HAVE_LINUX_SENDFILE || HAVE_FREEBSD_SENDFILE ||
@@ -104,7 +104,8 @@
104#define RESTRICT __restrict__ 104#define RESTRICT __restrict__
105#endif /* __VXWORKS__ || __vxworks || OS_VXWORKS */ 105#endif /* __VXWORKS__ || __vxworks || OS_VXWORKS */
106 106
107#if LINUX+0 && (defined(HAVE_SENDFILE64) || defined(HAVE_LSEEK64)) && ! defined(_LARGEFILE64_SOURCE) 107#if LINUX + 0 && (defined(HAVE_SENDFILE64) || defined(HAVE_LSEEK64)) && \
108 ! defined(_LARGEFILE64_SOURCE)
108/* On Linux, special macro is required to enable definitions of some xxx64 functions */ 109/* On Linux, special macro is required to enable definitions of some xxx64 functions */
109#define _LARGEFILE64_SOURCE 1 110#define _LARGEFILE64_SOURCE 1
110#endif 111#endif
@@ -115,12 +116,13 @@
115#endif /* HAVE_C11_GMTIME_S */ 116#endif /* HAVE_C11_GMTIME_S */
116 117
117#if defined(MHD_FAVOR_FAST_CODE) && defined(MHD_FAVOR_SMALL_CODE) 118#if defined(MHD_FAVOR_FAST_CODE) && defined(MHD_FAVOR_SMALL_CODE)
118#error MHD_FAVOR_FAST_CODE and MHD_FAVOR_SMALL_CODE are both defined. Cannot favor speed and size at the same time. 119#error \
120 MHD_FAVOR_FAST_CODE and MHD_FAVOR_SMALL_CODE are both defined. Cannot favor speed and size at the same time.
119#endif /* MHD_FAVOR_FAST_CODE && MHD_FAVOR_SMALL_CODE */ 121#endif /* MHD_FAVOR_FAST_CODE && MHD_FAVOR_SMALL_CODE */
120 122
121/* Define MHD_FAVOR_FAST_CODE to force fast code path or 123/* Define MHD_FAVOR_FAST_CODE to force fast code path or
122 define MHD_FAVOR_SMALL_CODE to choose compact code path */ 124 define MHD_FAVOR_SMALL_CODE to choose compact code path */
123#if !defined(MHD_FAVOR_FAST_CODE) && !defined(MHD_FAVOR_SMALL_CODE) 125#if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE)
124/* Try to detect user preferences */ 126/* Try to detect user preferences */
125/* Defined by GCC and many compatible compilers */ 127/* Defined by GCC and many compatible compilers */
126#if defined(__OPTIMIZE_SIZE__) 128#if defined(__OPTIMIZE_SIZE__)
@@ -130,7 +132,7 @@
130#endif /* __OPTIMIZE__ */ 132#endif /* __OPTIMIZE__ */
131#endif /* !MHD_FAVOR_FAST_CODE && !MHD_FAVOR_SMALL_CODE */ 133#endif /* !MHD_FAVOR_FAST_CODE && !MHD_FAVOR_SMALL_CODE */
132 134
133#if !defined(MHD_FAVOR_FAST_CODE) && !defined(MHD_FAVOR_SMALL_CODE) 135#if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE)
134/* Use faster code by default */ 136/* Use faster code by default */
135#define MHD_FAVOR_FAST_CODE 1 137#define MHD_FAVOR_FAST_CODE 1
136#endif /* !MHD_FAVOR_FAST_CODE && !MHD_FAVOR_SMALL_CODE */ 138#endif /* !MHD_FAVOR_FAST_CODE && !MHD_FAVOR_SMALL_CODE */