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,
55 #define MHD_snprintf_ W32_snprintf
58 Your platform does not support snprintf() and MHD does not know how to emulate it on your platform.
67 #define MHD_random_() random ()
74 #define MHD_random_() ( (((long) rand ()) << 15) + (long) rand () )
82 #define MHD_calloc_(n,s) calloc ((n),(s))
void * MHD_calloc_(size_t nelem, size_t elsize)
additional automatic macros for MHD_config.h