1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

mg_remove is also available if NO_FILE is set

This commit is contained in:
bel
2016-03-14 22:05:32 +01:00
parent 8b5b7d516d
commit 833fda13ba

View File

@@ -2928,7 +2928,6 @@ mg_stat(struct mg_connection *conn, const char *path, struct file *filep)
} }
#if !defined(NO_FILES)
static int static int
mg_remove(const char *path) mg_remove(const char *path)
{ {
@@ -2936,7 +2935,6 @@ mg_remove(const char *path)
to_unicode(path, wbuf, ARRAY_SIZE(wbuf)); to_unicode(path, wbuf, ARRAY_SIZE(wbuf));
return DeleteFileW(wbuf) ? 0 : -1; return DeleteFileW(wbuf) ? 0 : -1;
} }
#endif
static int static int