summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lib/h5diff_array.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c
index b7a4be6..ebf541e 100644
--- a/tools/lib/h5diff_array.c
+++ b/tools/lib/h5diff_array.c
@@ -156,13 +156,22 @@ static void h5diff_print_char(char ch);
* NaN detection
*-------------------------------------------------------------------------
*/
+
+#if H5_SIZEOF_LONG_DOUBLE !=0
typedef enum dtype_t
{
- FLT_FLOAT, FLT_DOUBLE,
-#if H5_SIZEOF_LONG_DOUBLE !=0
- FLT_LDOUBLE,
-#endif
+ FLT_FLOAT,
+ FLT_DOUBLE,
+ FLT_LDOUBLE
} dtype_t;
+#else
+
+typedef enum dtype_t
+{
+ FLT_FLOAT,
+ FLT_DOUBLE
+} dtype_t;
+#endif
static int my_isnan(dtype_t type, void *val);