MG_DISABLE_MQTT -> MG_ENABLE_MQTT

PUBLISHED_FROM=34e6028b68e286f81be7ba0f8ae73b760f144131
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-10-13 21:08:22 +00:00
1 parent 75059d1bdc
commit b298d46a40
5 files changed
+17 -10

No files matched your search

+10 -4
View File
@@ -1219,10 +1219,6 @@ const char *c_strnstr(const char *s, const char *find, size_t slen);
#define MG_DISABLE_DAV 0
#endif
#ifndef MG_DISABLE_MQTT
#define MG_DISABLE_MQTT 0
#endif
#ifndef MG_DISABLE_PFS
#define MG_DISABLE_PFS 0
#endif
@@ -1287,6 +1283,10 @@ const char *c_strnstr(const char *s, const char *find, size_t slen);
#define MG_ENABLE_JAVASCRIPT 0
#endif
#ifndef MG_ENABLE_MQTT
#define MG_ENABLE_MQTT 0
#endif
#ifndef MG_ENABLE_MQTT_BROKER
#define MG_ENABLE_MQTT_BROKER 0
#endif
@@ -1322,6 +1322,12 @@ const char *c_strnstr(const char *s, const char *find, size_t slen);
#define MG_DISABLE_SOCKETPAIR 1
#endif /* MG_NO_BSD_SOCKETS */
/* MQTT broker requires MQTT */
#if MG_ENABLE_MQTT_BROKER && !MG_ENABLE_MQTT
#undef MG_ENABLE_MQTT
#define MG_ENABLE_MQTT 1
#endif
#endif /* CS_MONGOOSE_SRC_FEATURES_H_ */
#ifdef MG_MODULE_LINES
#line 1 "mongoose/src/net.h"