mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
Remove MG_ENABLE_MGOS
This commit is contained in:
1 parent
0fbdda4d2e
commit
5fe34fd6c3
3 files changed
-24
No files matched your search
-12
@@ -311,10 +311,6 @@ static __inline struct tm *localtime_r(time_t *t, struct tm *tm) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef MG_ENABLE_LWIP
|
|
||||||
#define MG_ENABLE_LWIP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MG_ENABLE_SOCKET
|
#ifndef MG_ENABLE_SOCKET
|
||||||
#define MG_ENABLE_SOCKET 1
|
#define MG_ENABLE_SOCKET 1
|
||||||
#endif
|
#endif
|
||||||
@@ -343,10 +339,6 @@ static __inline struct tm *localtime_r(time_t *t, struct tm *tm) {
|
|||||||
#define MG_ENABLE_LOG 1
|
#define MG_ENABLE_LOG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_ENABLE_MGOS
|
|
||||||
#define MG_ENABLE_MGOS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MG_ENABLE_MD5
|
#ifndef MG_ENABLE_MD5
|
||||||
#define MG_ENABLE_MD5 0
|
#define MG_ENABLE_MD5 0
|
||||||
#endif
|
#endif
|
||||||
@@ -410,9 +402,6 @@ const char *mg_strstr(const struct mg_str haystack, const struct mg_str needle);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if MG_ENABLE_MGOS
|
|
||||||
#include <common/cs_dbg.h>
|
|
||||||
#else
|
|
||||||
#if MG_ENABLE_LOG
|
#if MG_ENABLE_LOG
|
||||||
#define LOG(level, args) \
|
#define LOG(level, args) \
|
||||||
do { \
|
do { \
|
||||||
@@ -426,7 +415,6 @@ void mg_log_set_callback(void (*fn)(const void *, int, void *), void *param);
|
|||||||
#else
|
#else
|
||||||
#define LOG(level, args)
|
#define LOG(level, args)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
struct mg_timer {
|
struct mg_timer {
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef MG_ENABLE_LWIP
|
|
||||||
#define MG_ENABLE_LWIP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MG_ENABLE_SOCKET
|
#ifndef MG_ENABLE_SOCKET
|
||||||
#define MG_ENABLE_SOCKET 1
|
#define MG_ENABLE_SOCKET 1
|
||||||
#endif
|
#endif
|
||||||
@@ -32,10 +28,6 @@
|
|||||||
#define MG_ENABLE_LOG 1
|
#define MG_ENABLE_LOG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_ENABLE_MGOS
|
|
||||||
#define MG_ENABLE_MGOS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MG_ENABLE_MD5
|
#ifndef MG_ENABLE_MD5
|
||||||
#define MG_ENABLE_MD5 0
|
#define MG_ENABLE_MD5 0
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
#include "arch.h"
|
#include "arch.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if MG_ENABLE_MGOS
|
|
||||||
#include <common/cs_dbg.h>
|
|
||||||
#else
|
|
||||||
#if MG_ENABLE_LOG
|
#if MG_ENABLE_LOG
|
||||||
#define LOG(level, args) \
|
#define LOG(level, args) \
|
||||||
do { \
|
do { \
|
||||||
@@ -19,4 +16,3 @@ void mg_log_set_callback(void (*fn)(const void *, int, void *), void *param);
|
|||||||
#else
|
#else
|
||||||
#define LOG(level, args)
|
#define LOG(level, args)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
Reference in new issue
Block a user