mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Add MG_ARCH_ARMCC
This commit is contained in:
1 parent
21dbfd79d8
commit
245dc76503
3 files changed
+44
-8
No files matched your search
+15
-2
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#if MG_ARCH == MG_ARCH_RTX
|
||||
#if MG_ARCH == MG_ARCH_ARMCC || MG_ARCH == MG_ARCH_RTX
|
||||
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
@@ -13,7 +13,20 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#if !defined MG_ENABLE_RL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP)
|
||||
#define strdup(s) ((char *) mg_strdup(mg_str(s)).ptr)
|
||||
|
||||
#if defined(__ARMCC_VERSION)
|
||||
#define mode_t size_t
|
||||
#define mkdir(a, b) mg_mkdir(a, b)
|
||||
static inline int mg_mkdir(const char *path, mode_t mode) {
|
||||
(void) path, (void) mode;
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if MG_ARCH == MG_ARCH_RTX && !defined MG_ENABLE_RL && \
|
||||
(!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP) && \
|
||||
(!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP)
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user