From 25de791424908d18ea24979aad2f2f676c8779ed Mon Sep 17 00:00:00 2001 From: Alexander Alashkin <alexander.alashkin@cesanta.com> Date: Thu, 8 Dec 2016 21:08:53 +0200 Subject: [PATCH] Fix miot-mbed compilation, part 2 PUBLISHED_FROM=bd87b901b7c1c1a4f9b0f875f0b024b672121d4a --- mongoose.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mongoose.h b/mongoose.h index d58667ff2..32fca84e3 100644 --- a/mongoose.h +++ b/mongoose.h @@ -868,7 +868,13 @@ typedef struct stat cs_stat_t; #define CS_COMMON_PLATFORMS_PLATFORM_MBED_H_ #if CS_PLATFORM == CS_P_MBED +/* + * mbed.h contains C++ code (e.g. templates), thus, it should be processed + * only if included directly to startup file (ex: main.cpp) + */ +#ifdef __cplusplus /* Amalgamated: #include "mbed.h" */ +#endif #include <assert.h> #include <ctype.h> -- GitLab