35 #define MHD_COMPAT_H 1
44 #define MHD_strerror_(errnum) strerror((errnum))
47 #if defined(HAVE_SNPRINTF)
48 #define MHD_snprintf_ snprintf
50 #if defined(_WIN32) && ! defined(__CYGWIN__)
52 int W32_snprintf(
char *__restrict s,
size_t n,
const char *__restrict format, ...);
53 #define MHD_snprintf_ W32_snprintf
55 #error Your platform does not support snprintf() and MHD does not know how to emulate it on your platform.
64 #define MHD_random_() random()
71 #define MHD_random_() ( (((long)rand()) << 15) + (long)rand() )
79 #define MHD_calloc_(n,s) calloc((n),(s))
additional automatic macros for MHD_config.h
void * MHD_calloc_(size_t nelem, size_t elsize)