mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Make mongoose more bare-metal Keil friendly. Declare settings after arch. Introduce MG_ENABLE_FILE
This commit is contained in:
1 parent
9e0f04dc8b
commit
30bfb245f5
13 files changed
+141
-123
No files matched your search
@@ -68,9 +68,29 @@
|
||||
#endif
|
||||
|
||||
#ifndef MG_PATH_MAX
|
||||
#ifdef PATH_MAX
|
||||
#define MG_PATH_MAX PATH_MAX
|
||||
#else
|
||||
#define MG_PATH_MAX 128
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
||||
#define MG_SOCK_LISTEN_BACKLOG_SIZE 128
|
||||
#endif
|
||||
|
||||
#ifndef MG_DIRSEP
|
||||
#define MG_DIRSEP '/'
|
||||
#endif
|
||||
|
||||
#ifndef MG_INT64_FMT
|
||||
#define MG_INT64_FMT "%lld"
|
||||
#endif
|
||||
|
||||
#ifndef MG_ENABLE_FILE
|
||||
#if defined(FOPEN_MAX)
|
||||
#define MG_ENABLE_FILE 1
|
||||
#else
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user