Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
11:77df6d7e65ae
Parent:
7:1af47e3a19b6
Child:
18:6d8a413a4d9a
--- a/azure_c_shared_utility/crt_abstractions.h	Fri Aug 26 12:59:40 2016 -0700
+++ b/azure_c_shared_utility/crt_abstractions.h	Fri Sep 09 13:38:26 2016 -0700
@@ -10,6 +10,7 @@
 #include <cstdio>
 #include <cstring>
 #include <cerrno>
+#include <cmath>
 extern "C" {
 #else
 #include <stdio.h>
@@ -124,7 +125,9 @@
 #else
 #ifdef __cplusplus
 /*C++ defines isnan... in C11*/
+extern "C++" {
 #define ISNAN std::isnan
+}
 #else
 #error unknown (or C89) compiler, provide ISNAN with the same meaning as isnan in C99 standard  
 #endif