Module Name: src Committed By: riastradh Date: Tue Sep 10 17:36:12 UTC 2024
Modified Files: src/tests/lib/libm: t_errhandling.c Log Message: libm/t_errhandling.c: Put __TEST_FENV before any #includes. This pattern avoids any potential problem with transitive inclusions of fenv.h. (No change here because nothing else this file includes transitively pulls in fenv.h, but being in the habit of doing it this way avoids a class of problems.) PR standards/56234: missing C99 frobs in <math.h> To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_errhandling.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libm/t_errhandling.c diff -u src/tests/lib/libm/t_errhandling.c:1.2 src/tests/lib/libm/t_errhandling.c:1.3 --- src/tests/lib/libm/t_errhandling.c:1.2 Mon Sep 9 17:03:08 2024 +++ src/tests/lib/libm/t_errhandling.c Tue Sep 10 17:36:12 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: t_errhandling.c,v 1.2 2024/09/09 17:03:08 jakllsch Exp $ */ +/* $NetBSD: t_errhandling.c,v 1.3 2024/09/10 17:36:12 riastradh Exp $ */ /*- * Copyright (c) 2024 The NetBSD Foundation, Inc. @@ -26,12 +26,13 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define __TEST_FENV + #include <sys/cdefs.h> -__RCSID("$NetBSD: t_errhandling.c,v 1.2 2024/09/09 17:03:08 jakllsch Exp $"); +__RCSID("$NetBSD: t_errhandling.c,v 1.3 2024/09/10 17:36:12 riastradh Exp $"); #include <atf-c.h> #include <errno.h> -#define __TEST_FENV #include <fenv.h> #include <math.h>