Go to the documentation of this file. 32 #define MHD_OPTIONS_H 1 34 #include "MHD_config.h" 42 #define _(String) (String) 47 #if defined(BUILDING_MHD_LIB) && defined(_WIN32) && \ 48 (defined(DLL_EXPORT) || defined(MHD_W32DLL)) 49 #define _MHD_EXTERN __declspec(dllexport) extern 51 #define _MHD_EXTERN extern 60 #elif defined(_WIN32) || defined(__CYGWIN__) 62 #define FD_SETSIZE 2048 65 #define _MHD_FD_SETSIZE_IS_DEFAULT 1 68 #if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_FREEBSD_SENDFILE) || \ 69 defined(HAVE_DARWIN_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE) 71 #define _MHD_HAVE_SENDFILE 74 #if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE) 75 #define MHD_LINUX_SOLARIS_SENDFILE 1 80 #define _OPEN_SYS_SOCK_IPV6 81 #define _OPEN_MSGQ_EXT 85 #if defined(_WIN32) && ! defined(__CYGWIN__) 87 #define _CRT_DECLARE_NONSTDC_NAMES 1 89 #define _CRT_NONSTDC_NO_WARNINGS 1 91 #define _WIN32_WINNT 0x0501 93 #if _WIN32_WINNT < 0x0501 94 #error "Headers for Windows XP or later are required" 97 #ifndef WIN32_LEAN_AND_MEAN 99 #define WIN32_LEAN_AND_MEAN 1 103 #if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS) 104 #define RESTRICT __restrict__ 107 #if LINUX + 0 && (defined(HAVE_SENDFILE64) || defined(HAVE_LSEEK64)) && \ 108 ! defined(_LARGEFILE64_SOURCE) 110 #define _LARGEFILE64_SOURCE 1 113 #ifdef HAVE_C11_GMTIME_S 115 #define __STDC_WANT_LIB_EXT1__ 1 118 #if defined(MHD_FAVOR_FAST_CODE) && defined(MHD_FAVOR_SMALL_CODE) 120 MHD_FAVOR_FAST_CODE and MHD_FAVOR_SMALL_CODE are both defined. Cannot favor speed and size at the same time. 125 #if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE) 128 #if defined(__OPTIMIZE_SIZE__) 129 #define MHD_FAVOR_SMALL_CODE 1 130 #elif defined(__OPTIMIZE__) 131 #define MHD_FAVOR_FAST_CODE 1 135 #if ! defined(MHD_FAVOR_FAST_CODE) && ! defined(MHD_FAVOR_SMALL_CODE) 137 #define MHD_FAVOR_FAST_CODE 1