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:
12:72001533b0e3
--- a/crt_abstractions.c	Fri Aug 26 12:59:40 2016 -0700
+++ b/crt_abstractions.c	Fri Sep 09 13:38:26 2016 -0700
@@ -443,14 +443,14 @@
     return result;
 }
 
-typedef enum
-{
-    FST_INFINITY,
-    FST_NAN,
-    FST_NUMBER,
-    FST_OVERFLOW,
-    FST_ERROR
-} FLOAT_STRING_TYPE;
+#define FLOAT_STRING_TYPE_VALUES    \
+            FST_INFINITY,           \
+            FST_NAN,                \
+            FST_NUMBER,             \
+            FST_OVERFLOW,           \
+            FST_ERROR
+
+DEFINE_ENUM(FLOAT_STRING_TYPE, FLOAT_STRING_TYPE_VALUES);
 
 static FLOAT_STRING_TYPE splitFloatString(const char* nptr, char** endptr, int *signal, double *fraction, int *exponential)
 {