From 72f1d444d36f974b45cc054a42d31db694c75aa1 Mon Sep 17 00:00:00 2001 From: Alexander Alashkin Date: Tue, 13 Dec 2016 17:07:29 +0200 Subject: [PATCH] Fix miot compilation in C++ mode PUBLISHED_FROM=42997efb3ddc462c33d2cf7e8ef0e922797d9901 --- mongoose.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mongoose.h b/mongoose.h index 0a0c7c06..206dca7d 100644 --- a/mongoose.h +++ b/mongoose.h @@ -880,7 +880,7 @@ typedef struct stat cs_stat_t; */ #ifdef __cplusplus /* Amalgamated: #include "mbed.h" */ -#endif +#endif /* __cplusplus */ #include #include @@ -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 +/* Amalgamated: #include "common/platform.h" */ + #if defined(__cplusplus) extern "C" { #endif -#include - -/* Amalgamated: #include "common/platform.h" */ - #ifndef MBUF_SIZE_MULTIPLIER #define MBUF_SIZE_MULTIPLIER 1.5 #endif