From c50764e72efd0f8f345cae4ab106d81535b014ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 23 Apr 2009 22:51:27 +0200 Subject: [PATCH] Use instead of when needed (e.g., Tru64 5.1b). * configure.in: Look for . * test-suite/standalone/test-round.c: Use if available. --- configure.in | 4 +++- test-suite/standalone/test-round.c | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 27908041f..b53b862e7 100644 --- a/configure.in +++ b/configure.in @@ -619,13 +619,15 @@ AC_SUBST([SCM_I_GSC_HAVE_STRUCT_DIRENT64]) # Reasons for testing: # complex.h - new in C99 # fenv.h - available in C99, but not older systems +# machine/fpu.h - on Tru64 5.1b, the declaration of fesetround(3) is in +# this file instead of # process.h - mingw specific # AC_CHECK_HEADERS([complex.h fenv.h io.h libc.h limits.h malloc.h memory.h process.h string.h \ regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \ sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \ sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \ -direct.h strings.h]) +direct.h strings.h machine/fpu.h]) # "complex double" is new in C99, and "complex" is only a keyword if # is included diff --git a/test-suite/standalone/test-round.c b/test-suite/standalone/test-round.c index 9725491c9..f9b40773b 100644 --- a/test-suite/standalone/test-round.c +++ b/test-suite/standalone/test-round.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2006, 2008 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2006, 2008, 2009 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -25,6 +25,9 @@ #if HAVE_FENV_H #include +#elif defined HAVE_MACHINE_FPU_H +/* On Tru64 5.1b, the declaration of fesetround(3) is here. */ +# include #endif #include