Loading...
Searching...
No Matches
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
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
145#ifndef MHD_ASAN_ACTIVE
146#if (defined(__GNUC__) || defined(_MSC_VER)) && defined(__SANITIZE_ADDRESS__)
147#define MHD_ASAN_ACTIVE 1
148#elif defined(__has_feature)
149#if __has_feature (address_sanitizer)
150#define MHD_ASAN_ACTIVE 1
155#if defined(MHD_ASAN_ACTIVE) && defined(HAVE_SANITIZER_ASAN_INTERFACE_H) && \
156 (defined(FUNC_ATTR_PTRCOMPARE_WOKRS) || defined(FUNC_ATTR_NOSANITIZE_WORKS))
157#ifndef MHD_ASAN_POISON_ACTIVE
159#warning User memory poisoning is not active
163#ifdef MHD_ASAN_POISON_ACTIVE
164#error User memory poisoning is active, but conditions are not suitable
173#if defined(HAVE___FUNC__)
174#define MHD_FUNC_ __func__
175#elif defined(HAVE___FUNCTION__)
176#define MHD_FUNC_ __FUNCTION__
177#elif defined(HAVE___PRETTY_FUNCTION__)
178#define MHD_FUNC_ __PRETTY_FUNCTION__
180#define MHD_FUNC_ "**name unavailable**"