mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 05:26:15 +08:00
Fix #1448 - fix MG_ENABLE_FILE build
This commit is contained in:
parent
ad6e395da0
commit
5fc284722f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user