From 348787f06902b971d76dbab3f05d54c0b5c36131 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Wed, 27 Nov 2019 10:06:50 -0600 Subject: ldbl-128ibm-compat: Fix selection of GNU and ISO C99 scanf Since commit commit 03992356e6fedc5a5e9d32df96c1a2c79ea28a8f Author: Zack Weinberg Date: Sat Feb 10 11:58:35 2018 -0500 Use C99-compliant scanf under _GNU_SOURCE with modern compilers. the selection of the GNU versions of scanf functions requires both _GNU_SOURCE and -std=c89. This patch changes the tests in ldbl-128ibm-compat so that they actually test the GNU versions (without this change, the redirection to the ISO C99 version always happens, so GNU versions of the new implementation (e.g. __scanfieee128) were left untested). Tested for powerpc64le. Reviewed-by: Paul E. Murphy --- sysdeps/ieee754/ldbl-128ibm-compat/test-scanf-ldbl-compat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps/ieee754/ldbl-128ibm-compat/test-scanf-ldbl-compat.c') diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/test-scanf-ldbl-compat.c b/sysdeps/ieee754/ldbl-128ibm-compat/test-scanf-ldbl-compat.c index 0759d8afab..116808dffd 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/test-scanf-ldbl-compat.c +++ b/sysdeps/ieee754/ldbl-128ibm-compat/test-scanf-ldbl-compat.c @@ -1,3 +1,7 @@ +/* Include stdio.h from libio/, because include/stdio.h and -std=c89 do + not work together. */ +#include + #define CHAR char #define L(x) x #define FSCANF fscanf -- cgit 1.4.1