fix float.h api test: FLT_ROUNDS is not int const expr
authorSzabolcs Nagy <nsz@port70.net>
Tue, 6 Jan 2015 16:00:02 +0000 (17:00 +0100)
committerSzabolcs Nagy <nsz@port70.net>
Tue, 6 Jan 2015 16:00:02 +0000 (17:00 +0100)
src/api/float.c

index 254e50d..5a29ecc 100644 (file)
@@ -1,9 +1,10 @@
 #include <float.h>
+#define I(n) {int i = n;}
 #define C(n) switch(n){case n:;}
 #define D(n) {long double d = n;}
 static void f()
 {
-C(FLT_ROUNDS)
+I(FLT_ROUNDS)
 C(FLT_EVAL_METHOD)
 C(FLT_RADIX)
 C(FLT_MANT_DIG)