mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Pull mongoose_custom.h
This commit is contained in:
parent
4355b39b1e
commit
0defce37f0
@ -60,6 +60,7 @@ extern "C" {
|
|||||||
#elif defined(PICO_TARGET_NAME)
|
#elif defined(PICO_TARGET_NAME)
|
||||||
#define MG_ARCH MG_ARCH_RP2040
|
#define MG_ARCH MG_ARCH_RP2040
|
||||||
#endif
|
#endif
|
||||||
|
#endif // !defined(MG_ARCH)
|
||||||
|
|
||||||
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
|
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
|
||||||
#include "mongoose_custom.h" // keep this include
|
#include "mongoose_custom.h" // keep this include
|
||||||
@ -68,7 +69,6 @@ extern "C" {
|
|||||||
#if !defined(MG_ARCH)
|
#if !defined(MG_ARCH)
|
||||||
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
|
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
|
||||||
#endif
|
#endif
|
||||||
#endif // !defined(MG_ARCH)
|
|
||||||
|
|
||||||
// http://esr.ibiblio.org/?p=5095
|
// http://esr.ibiblio.org/?p=5095
|
||||||
#define MG_BIG_ENDIAN (*(uint16_t *)"\0\xff" < 0x100)
|
#define MG_BIG_ENDIAN (*(uint16_t *)"\0\xff" < 0x100)
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#elif defined(PICO_TARGET_NAME)
|
#elif defined(PICO_TARGET_NAME)
|
||||||
#define MG_ARCH MG_ARCH_RP2040
|
#define MG_ARCH MG_ARCH_RP2040
|
||||||
#endif
|
#endif
|
||||||
|
#endif // !defined(MG_ARCH)
|
||||||
|
|
||||||
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
|
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
|
||||||
#include "mongoose_custom.h" // keep this include
|
#include "mongoose_custom.h" // keep this include
|
||||||
@ -41,7 +42,6 @@
|
|||||||
#if !defined(MG_ARCH)
|
#if !defined(MG_ARCH)
|
||||||
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
|
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
|
||||||
#endif
|
#endif
|
||||||
#endif // !defined(MG_ARCH)
|
|
||||||
|
|
||||||
// http://esr.ibiblio.org/?p=5095
|
// http://esr.ibiblio.org/?p=5095
|
||||||
#define MG_BIG_ENDIAN (*(uint16_t *)"\0\xff" < 0x100)
|
#define MG_BIG_ENDIAN (*(uint16_t *)"\0\xff" < 0x100)
|
||||||
|
Loading…
Reference in New Issue
Block a user