mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-08 10:50:21 +02:00
Use <machine/fpu.h> instead of <fenv.h> when needed (e.g., Tru64 5.1b).
* configure.in: Look for <machine/fpu.h>. * test-suite/standalone/test-round.c: Use <machine/fpu.h> if available.
This commit is contained in:
parent
fbcc27cfef
commit
c50764e72e
2 changed files with 7 additions and 2 deletions
|
@ -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 <fenv.h>
|
||||
# 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
|
||||
# <complex.h> is included
|
||||
|
|
|
@ -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 <fenv.h>
|
||||
#elif defined HAVE_MACHINE_FPU_H
|
||||
/* On Tru64 5.1b, the declaration of fesetround(3) is here. */
|
||||
# include <machine/fpu.h>
|
||||
#endif
|
||||
|
||||
#include <libguile.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue