summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-20 12:38:36 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit2b176f76eaceef00c23a0cac70adb7065bc88713 (patch)
tree26a76e2ba6f2386341aa6b0c6481b5c49524dabb /src/test
parente1114d86d9ad2b65be52e756589d94bd0c87c6ab (diff)
test-sizeof: another aproach to _Float128 availability detection
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-sizeof.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c
index 06711753f..bd010c50d 100644
--- a/src/test/test-sizeof.c
+++ b/src/test/test-sizeof.c
@@ -3,6 +3,9 @@
#include <stdio.h>
#include <string.h>
+#define __STDC_WANT_IEC_60559_TYPES_EXT__
+//#include <float.h>
+
#include "time-util.h"
/* Print information about various types. Useful when diagnosing
@@ -46,7 +49,7 @@ int main(void) {
info(double);
info(long double);
-#ifdef __HAVE_DISTINCT_FLOAT128X
+#ifdef FLT128_MAX
info(_Float128);
info(_Float64);
info(_Float64x);