diff options
Diffstat (limited to 'src/microhttpd/mhd_compat.h')
-rw-r--r-- | src/microhttpd/mhd_compat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_compat.h b/src/microhttpd/mhd_compat.h index 19ebac5f..fca84b84 100644 --- a/src/microhttpd/mhd_compat.h +++ b/src/microhttpd/mhd_compat.h | |||
@@ -72,4 +72,16 @@ int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, .. | |||
72 | #endif /* HAVE_RAND */ | 72 | #endif /* HAVE_RAND */ |
73 | #endif /* HAVE_RANDOM */ | 73 | #endif /* HAVE_RANDOM */ |
74 | 74 | ||
75 | #ifdef HAVE_CALLOC | ||
76 | /** | ||
77 | * MHD_calloc_ is platform-independent calloc() | ||
78 | */ | ||
79 | #define MHD_calloc_(n,s) calloc((n),(s)) | ||
80 | #else /* ! HAVE_CALLOC */ | ||
81 | /** | ||
82 | * MHD_calloc_ is platform-independent calloc() | ||
83 | */ | ||
84 | void *MHD_calloc_(size_t nelem, size_t elsize); | ||
85 | #endif /* ! HAVE_CALLOC */ | ||
86 | |||
75 | #endif /* MHD_COMPAT_H */ | 87 | #endif /* MHD_COMPAT_H */ |