MG_ENABLE_FS -> MG_ENABLE_STDIO

This commit is contained in:
Sergey Lyubka committed 2021-07-23 19:47:26 +01:00
1 parent 8e5efd4804
commit 529faa1172
11 files changed
+55 -52

No files matched your search

+1 -1
View File
@@ -364,7 +364,7 @@ void mg_http_reply(struct mg_connection *c, int code, const char *headers,
if (buf != mem) free(buf);
}
#if MG_ENABLE_FS
#if MG_ENABLE_STDIO
static void http_cb(struct mg_connection *, int, void *, void *);
static void restore_http_cb(struct mg_connection *c) {
if (c->pfn_data != NULL) fclose((FILE *) c->pfn_data);