Disable POSIX FS by default

This commit is contained in:
Sergey Lyubka
2024-08-14 05:26:08 +01:00
parent 166c4a244a
commit ecdfda56c2
4 changed files with 51 additions and 48 deletions
+4
View File
@@ -56,4 +56,8 @@
#define MG_PATH_MAX FILENAME_MAX
#endif
#ifndef MG_ENABLE_POSIX_FS
#define MG_ENABLE_POSIX_FS 1
#endif
#endif
+4
View File
@@ -110,4 +110,8 @@ typedef int socklen_t;
#define SIGPIPE 0
#endif
#ifndef MG_ENABLE_POSIX_FS
#define MG_ENABLE_POSIX_FS 1
#endif
#endif
-4
View File
@@ -118,12 +118,8 @@
#endif
#ifndef MG_ENABLE_POSIX_FS
#if defined(FOPEN_MAX)
#define MG_ENABLE_POSIX_FS 1
#else
#define MG_ENABLE_POSIX_FS 0
#endif
#endif
#ifndef MG_INVALID_SOCKET
#define MG_INVALID_SOCKET (-1)