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 79 #define _OPEN_SYS_SOCK_IPV6 80 #define _OPEN_MSGQ_EXT 84 #if defined(_WIN32) && ! defined(__CYGWIN__) 86 #define _CRT_DECLARE_NONSTDC_NAMES 1 88 #define _CRT_NONSTDC_NO_WARNINGS 1 90 #define _WIN32_WINNT 0x0501 92 #if _WIN32_WINNT < 0x0501 93 #error "Headers for Windows XP or later are required" 96 #ifndef WIN32_LEAN_AND_MEAN 98 #define WIN32_LEAN_AND_MEAN 1 102 #if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS) 103 #define RESTRICT __restrict__ 106 #if LINUX + 0 && (defined(HAVE_SENDFILE64) || defined(HAVE_LSEEK64)) && \ 107 ! defined(_LARGEFILE64_SOURCE) 109 #define _LARGEFILE64_SOURCE 1 112 #ifdef HAVE_C11_GMTIME_S 114 #define __STDC_WANT_LIB_EXT1__ 1 117 #if defined(MHD_FAVOR_FAST_CODE) && defined(MHD_FAVOR_SMALL_CODE) 119 MHD_FAVOR_FAST_CODE and MHD_FAVOR_SMALL_CODE are both defined. Cannot favor speed and size at the same time. 124 #if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE) 127 #if defined(__OPTIMIZE_SIZE__) 128 #define MHD_FAVOR_SMALL_CODE 1 129 #elif defined(__OPTIMIZE__) 130 #define MHD_FAVOR_FAST_CODE 1 134 #if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE) 136 #define MHD_FAVOR_FAST_CODE 1