Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
27:8656a313842b
Parent:
21:b92006c5b9ff
Child:
37:f0dc2835e9e0
--- a/crt_abstractions.c	Mon May 08 10:51:21 2017 -0700
+++ b/crt_abstractions.c	Mon May 22 10:35:55 2017 -0700
@@ -14,9 +14,21 @@
 #include "azure_c_shared_utility/optimize_size.h"
 #include "azure_c_shared_utility/crt_abstractions.h"
 
+// VS 2008 does not have INFINITY and all the nice goodies...
+#if defined (TIZENRT) || defined (WINCE)
+#define DEFINE_INFINITY 1
+#else
 
-#if defined (WINCE) || defined (TIZENRT)
-#pragma warning(disable:4756) // warning C4756: overflow in constant arithmetic
+#if defined _MSC_VER
+#if _MSC_VER <= 1500
+#define DEFINE_INFINITY 1
+#endif
+#endif
+#endif
+
+#if defined DEFINE_INFINITY
+
+#pragma warning(disable:4756 4056) // warning C4756: overflow in constant arithmetic
 
 // These defines are missing in math.h for WEC2013 SDK
 #ifndef _HUGE_ENUF
@@ -29,8 +41,6 @@
 #define NAN        ((float)(INFINITY * 0.0F))
 #endif
 
-
-
 #ifdef _MSC_VER
 #else