diff --git a/mongoose.h b/mongoose.h index 753da1e9..9389ffd6 100644 --- a/mongoose.h +++ b/mongoose.h @@ -311,10 +311,6 @@ static __inline struct tm *localtime_r(time_t *t, struct tm *tm) { #endif -#ifndef MG_ENABLE_LWIP -#define MG_ENABLE_LWIP 0 -#endif - #ifndef MG_ENABLE_SOCKET #define MG_ENABLE_SOCKET 1 #endif @@ -343,10 +339,6 @@ static __inline struct tm *localtime_r(time_t *t, struct tm *tm) { #define MG_ENABLE_LOG 1 #endif -#ifndef MG_ENABLE_MGOS -#define MG_ENABLE_MGOS 0 -#endif - #ifndef MG_ENABLE_MD5 #define MG_ENABLE_MD5 0 #endif @@ -410,9 +402,6 @@ const char *mg_strstr(const struct mg_str haystack, const struct mg_str needle); -#if MG_ENABLE_MGOS -#include -#else #if MG_ENABLE_LOG #define LOG(level, args) \ do { \ @@ -426,7 +415,6 @@ void mg_log_set_callback(void (*fn)(const void *, int, void *), void *param); #else #define LOG(level, args) #endif -#endif struct mg_timer { diff --git a/src/config.h b/src/config.h index 4cbe49a7..86030697 100644 --- a/src/config.h +++ b/src/config.h @@ -1,9 +1,5 @@ #pragma once -#ifndef MG_ENABLE_LWIP -#define MG_ENABLE_LWIP 0 -#endif - #ifndef MG_ENABLE_SOCKET #define MG_ENABLE_SOCKET 1 #endif @@ -32,10 +28,6 @@ #define MG_ENABLE_LOG 1 #endif -#ifndef MG_ENABLE_MGOS -#define MG_ENABLE_MGOS 0 -#endif - #ifndef MG_ENABLE_MD5 #define MG_ENABLE_MD5 0 #endif diff --git a/src/log.h b/src/log.h index 245c7211..fc3c94f9 100644 --- a/src/log.h +++ b/src/log.h @@ -3,9 +3,6 @@ #include "arch.h" #include "config.h" -#if MG_ENABLE_MGOS -#include -#else #if MG_ENABLE_LOG #define LOG(level, args) \ do { \ @@ -19,4 +16,3 @@ void mg_log_set_callback(void (*fn)(const void *, int, void *), void *param); #else #define LOG(level, args) #endif -#endif