mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
mongoose_custom.h not pulled in when MG_ARCH=MG_ARCH_CUSTOM
This commit is contained in:
1 parent
613655767b
commit
47a12c30ca
3 files changed
+8
-3
No files matched your search
+6
-1
@@ -334,7 +334,7 @@ accordingly.
|
|||||||
|
|
||||||
## Custom build
|
## Custom build
|
||||||
|
|
||||||
A custom build should be used for cases which is not covered by the
|
A custom build should be used for cases not covered by the
|
||||||
existing architecture options (e.g., an embedded architecture that
|
existing architecture options (e.g., an embedded architecture that
|
||||||
uses some proprietary RTOS and network stack). In order to build on such
|
uses some proprietary RTOS and network stack). In order to build on such
|
||||||
systems, follow the outline below:
|
systems, follow the outline below:
|
||||||
@@ -352,6 +352,11 @@ you have enabled - see previous section. Below is an example:
|
|||||||
#define MG_DIRSEP '/'
|
#define MG_DIRSEP '/'
|
||||||
#define MG_INT64_FMT "%lld"
|
#define MG_INT64_FMT "%lld"
|
||||||
```
|
```
|
||||||
|
You can also add
|
||||||
|
```c
|
||||||
|
#define MG_ARCH MG_ARCH_CUSTOM
|
||||||
|
```
|
||||||
|
To this file, instead of adding build flags.
|
||||||
3. This step is optional, and only required if you intend to use a custom
|
3. This step is optional, and only required if you intend to use a custom
|
||||||
TCP/IP stack. To do that, you should:
|
TCP/IP stack. To do that, you should:
|
||||||
* Disable BSD socket API: in the `mongoose_custom.h`, add
|
* Disable BSD socket API: in the `mongoose_custom.h`, add
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ extern "C" {
|
|||||||
#define MG_ARCH MG_ARCH_RP2040
|
#define MG_ARCH MG_ARCH_RP2040
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MG_ARCH)
|
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
|
||||||
#include "mongoose_custom.h" // keep this include
|
#include "mongoose_custom.h" // keep this include
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@
|
|||||||
#define MG_ARCH MG_ARCH_RP2040
|
#define MG_ARCH MG_ARCH_RP2040
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MG_ARCH)
|
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
|
||||||
#include "mongoose_custom.h" // keep this include
|
#include "mongoose_custom.h" // keep this include
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user