Fix miot compilation in C++ mode

PUBLISHED_FROM=42997efb3ddc462c33d2cf7e8ef0e922797d9901
This commit is contained in:
Alexander Alashkin 2016-12-13 17:07:29 +02:00 committed by Cesanta Bot
parent 7dcc94202d
commit 72f1d444d3

View File

@ -880,7 +880,7 @@ typedef struct stat cs_stat_t;
*/
#ifdef __cplusplus
/* Amalgamated: #include "mbed.h" */
#endif
#endif /* __cplusplus */
#include <assert.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_
#define CS_COMMON_MBUF_H_
#include <stdlib.h>
/* Amalgamated: #include "common/platform.h" */
#if defined(__cplusplus)
extern "C" {
#endif
#include <stdlib.h>
/* Amalgamated: #include "common/platform.h" */
#ifndef MBUF_SIZE_MULTIPLIER
#define MBUF_SIZE_MULTIPLIER 1.5
#endif