TCP_ECHO_CLIENT_DEMO app fix for CLang/IAR builds
ARM CLang and IAR linkers have issues when
external demoGetMqttSerializer symbol is declared and
not defined (i.e. TCP_ECHO_CLIENT_DEMO application)
/* Provide a function to retrieve the serializer function pointers in the MQTT demo. */
typedef struct IotMqttSerializer IotMqttSerializer_t;
+
+#if defined (MQTT_DEMO_TYPE_ENABLED)
extern const IotMqttSerializer_t * demoGetMqttSerializer( void );
#define IOT_DEMO_MQTT_SERIALIZER demoGetMqttSerializer()
+#endif
/* Include the common configuration file for FreeRTOS. */
#include "iot_config_common.h"
