Go to the documentation of this file.
32 #define MHD_OPTIONS_H 1
34 #include "MHD_config.h"
42 #define _(String) (String)
46 #if defined(BUILDING_MHD_LIB) && defined(_WIN32) && \
47 (defined(DLL_EXPORT) || defined(MHD_W32DLL))
48 #define _MHD_EXTERN __declspec(dllexport) extern
50 #define _MHD_EXTERN extern
59 #elif defined(_WIN32) || defined(__CYGWIN__)
61 #define FD_SETSIZE 2048
64 #define _MHD_FD_SETSIZE_IS_DEFAULT 1
67 #if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_FREEBSD_SENDFILE) || \
68 defined(HAVE_DARWIN_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE)
70 #define _MHD_HAVE_SENDFILE
73 #if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE)
74 #define MHD_LINUX_SOLARIS_SENDFILE 1
77 #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS)
78 # ifndef MHD_USE_THREADS
79 # define MHD_USE_THREADS 1
85 #define _OPEN_SYS_SOCK_IPV6
86 #define _OPEN_MSGQ_EXT
90 #if defined(_WIN32) && ! defined(__CYGWIN__)
92 #define _CRT_DECLARE_NONSTDC_NAMES 1
94 #define _CRT_NONSTDC_NO_WARNINGS 1
96 #define _WIN32_WINNT 0x0600
98 #if _WIN32_WINNT < 0x0501
99 #error "Headers for Windows XP or later are required"
102 #ifndef WIN32_LEAN_AND_MEAN
104 #define WIN32_LEAN_AND_MEAN 1
108 #if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS)
109 #define RESTRICT __restrict__
112 #if LINUX + 0 && (defined(HAVE_SENDFILE64) || defined(HAVE_LSEEK64)) && \
113 ! defined(_LARGEFILE64_SOURCE)
115 #define _LARGEFILE64_SOURCE 1
118 #ifdef HAVE_C11_GMTIME_S
120 #define __STDC_WANT_LIB_EXT1__ 1
123 #if defined(MHD_FAVOR_FAST_CODE) && defined(MHD_FAVOR_SMALL_CODE)
125 MHD_FAVOR_FAST_CODE and MHD_FAVOR_SMALL_CODE are both defined. Cannot favor speed and size at the same time.
130 #if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE)
133 #if defined(__OPTIMIZE_SIZE__)
134 #define MHD_FAVOR_SMALL_CODE 1
135 #elif defined(__OPTIMIZE__)
136 #define MHD_FAVOR_FAST_CODE 1
140 #if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE)
142 #define MHD_FAVOR_FAST_CODE 1