diff --git a/source/include/core_mqtt_agent.h b/source/include/core_mqtt_agent.h index 74491190..80c0e449 100644 --- a/source/include/core_mqtt_agent.h +++ b/source/include/core_mqtt_agent.h @@ -27,6 +27,10 @@ #ifndef CORE_MQTT_AGENT_H #define CORE_MQTT_AGENT_H +#ifdef __cplusplus +extern "C" { +#endif + /* MQTT library includes. */ #include "core_mqtt.h" #include "core_mqtt_state.h" @@ -949,4 +953,8 @@ MQTTStatus_t MQTTAgent_Terminate( const MQTTAgentContext_t * pMqttAgentContext, const MQTTAgentCommandInfo_t * pCommandInfo ); /* @[declare_mqtt_agent_terminate] */ +#ifdef __cplusplus +} +#endif + #endif /* CORE_MQTT_AGENT_H */