Commit c69c8218 authored by Juergen Kosel's avatar Juergen Kosel

Fix Windows build of test6

The functions implemented in Heap.c are not usable for Windows builds.
Therefore use only for none MSVC builds.
Signed-off-by: 's avatarJuergen Kosel <juergen.kosel@softing.com>
parent c9c5b9e2
......@@ -510,10 +510,11 @@ int recreateReconnect(void)
MyLog(LOGA_ALWAYS, "Recreating client");
MQTTAsync_destroy(&client); /* destroy the client object so that we force persistence to be read on recreate */
#if !defined(_WINDOWS)
heap_info* mqtt_mem = 0;
mqtt_mem = Heap_get_info();
MyLog(LOGA_INFO, "MQTT mem current %ld, max %ld",mqtt_mem->current_size,mqtt_mem->max_size);
#endif
//if (mqtt_mem->current_size > 20)
// HeapScan(5);
......@@ -1028,12 +1029,12 @@ exit:
destroy_exit:
MQTTAsync_destroy(&control_client);
#include "Heap.h"
#if !defined(_WINDOWS)
heap_info* mqtt_mem = 0;
mqtt_mem = Heap_get_info();
MyLog(LOGA_INFO, "MQTT mem current %ld, max %ld",mqtt_mem->current_size,mqtt_mem->max_size);
if (mqtt_mem->current_size > 0)
/*if (mqtt_mem->current_size > 0) */
/*failures++*/; /* consider any not freed memory as failure */
#endif
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment