mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
Wrap util funcs that use FILE into MG_ENABLE_FS
This commit is contained in:
1 parent
3c851bcfc3
commit
7614a8101f
2 files changed
+4
No files matched your search
@@ -3711,6 +3711,7 @@ struct mg_str mg_url_pass(const char *url) {
|
||||
#endif
|
||||
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
size_t mg_file_size(const char *path) {
|
||||
#if MG_ARCH == MG_ARCH_FREERTOS
|
||||
struct FF_STAT st;
|
||||
@@ -3781,6 +3782,7 @@ void mg_random(void *buf, size_t len) {
|
||||
}
|
||||
if (fp != NULL) fclose(fp);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool mg_globmatch(const char *s1, int n1, const char *s2, int n2) {
|
||||
int i = 0, j = 0, ni = 0, nj = 0;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "util.h"
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
size_t mg_file_size(const char *path) {
|
||||
#if MG_ARCH == MG_ARCH_FREERTOS
|
||||
struct FF_STAT st;
|
||||
@@ -70,6 +71,7 @@ void mg_random(void *buf, size_t len) {
|
||||
}
|
||||
if (fp != NULL) fclose(fp);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool mg_globmatch(const char *s1, int n1, const char *s2, int n2) {
|
||||
int i = 0, j = 0, ni = 0, nj = 0;
|
||||
|
||||
Reference in new issue
Block a user