mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Reimplement BSD layer
This commit is contained in:
1 parent
bc5afa4519
commit
fdf12844e3
28 files changed
+3653
-1746
No files matched your search
@@ -1,18 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
//#undef MG_ARCH
|
||||
//#define MG_ARCH MG_ARCH_UNIX
|
||||
#define MG_ENABLE_FREERTOS 1
|
||||
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#define MG_ENABLE_TCPIP_DRIVER_INIT 0
|
||||
#define MG_ENABLE_BSD_SOCKETS 1
|
||||
#define MG_ENABLE_BSD_LOG 1
|
||||
#define MG_ENABLE_LINES 1
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
//#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
@@ -24,7 +19,16 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if MG_ENABLE_FREERTOS
|
||||
|
||||
|
||||
#else
|
||||
|
||||
#define MG_ENABLE_CUSTOM_CALLOC 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user