diff --git a/mongoose.c b/mongoose.c index cf679e0f..9cfd1427 100644 --- a/mongoose.c +++ b/mongoose.c @@ -4221,7 +4221,6 @@ bool mg_file_write(const char *path, const void *buf, size_t len) { } return result; } -#endif bool mg_file_printf(const char *path, const char *fmt, ...) { char tmp[256], *buf = tmp; @@ -4235,6 +4234,7 @@ bool mg_file_printf(const char *path, const char *fmt, ...) { if (buf != tmp) free(buf); return result; } +#endif #if MG_ENABLE_CUSTOM_RANDOM #else diff --git a/src/util.c b/src/util.c index 646d847f..b948bebe 100644 --- a/src/util.c +++ b/src/util.c @@ -46,7 +46,6 @@ bool mg_file_write(const char *path, const void *buf, size_t len) { } return result; } -#endif bool mg_file_printf(const char *path, const char *fmt, ...) { char tmp[256], *buf = tmp; @@ -60,6 +59,7 @@ bool mg_file_printf(const char *path, const char *fmt, ...) { if (buf != tmp) free(buf); return result; } +#endif #if MG_ENABLE_CUSTOM_RANDOM #else