mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Introduce mg_calloc
This commit is contained in:
1 parent
5f1f4a0df8
commit
074ef5197b
26 files changed
+259
-313
No files matched your search
+12
@@ -199,3 +199,15 @@ void mg_delayms(unsigned int ms) {
|
||||
uint64_t to = mg_millis() + ms + 1;
|
||||
while (mg_millis() < to) (void) 0;
|
||||
}
|
||||
|
||||
|
||||
#if MG_ENABLE_CUSTOM_CALLOC
|
||||
#else
|
||||
void *mg_calloc(size_t count, size_t size) {
|
||||
return calloc(count, size);
|
||||
}
|
||||
|
||||
void mg_free(void *ptr) {
|
||||
free(ptr);
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user