From: Szabolcs Nagy Date: Tue, 6 Jan 2015 16:00:02 +0000 (+0100) Subject: fix float.h api test: FLT_ROUNDS is not int const expr X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=0416a1d179649cd373b99c11c5f1543eeaa47cfe fix float.h api test: FLT_ROUNDS is not int const expr --- diff --git a/src/api/float.c b/src/api/float.c index 254e50d..5a29ecc 100644 --- a/src/api/float.c +++ b/src/api/float.c @@ -1,9 +1,10 @@ #include +#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)