mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
Fix miot compilation in C++ mode
PUBLISHED_FROM=42997efb3ddc462c33d2cf7e8ef0e922797d9901
This commit is contained in:
1 parent
7dcc94202d
commit
72f1d444d3
1 file changed
+4
-5
+4
-5
@@ -880,7 +880,7 @@ typedef struct stat cs_stat_t;
|
|||||||
*/
|
*/
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
/* Amalgamated: #include "mbed.h" */
|
/* Amalgamated: #include "mbed.h" */
|
||||||
#endif
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -1636,14 +1636,13 @@ int mg_strncmp(const struct mg_str str1, const struct mg_str str2, size_t n);
|
|||||||
#ifndef CS_COMMON_MBUF_H_
|
#ifndef CS_COMMON_MBUF_H_
|
||||||
#define CS_COMMON_MBUF_H_
|
#define CS_COMMON_MBUF_H_
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
/* Amalgamated: #include "common/platform.h" */
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
/* Amalgamated: #include "common/platform.h" */
|
|
||||||
|
|
||||||
#ifndef MBUF_SIZE_MULTIPLIER
|
#ifndef MBUF_SIZE_MULTIPLIER
|
||||||
#define MBUF_SIZE_MULTIPLIER 1.5
|
#define MBUF_SIZE_MULTIPLIER 1.5
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user