Only compile is __HAVE_LONG_DOUBLE is defined

This commit is contained in:
matt 2013-07-18 22:31:13 +00:00
parent cc2211c874
commit 6bcb6c9e28
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: s_nextafterl.c,v 1.3 2013/02/14 08:56:56 matt Exp $ */
/* $NetBSD: s_nextafterl.c,v 1.4 2013/07/18 22:31:13 matt Exp $ */
/* @(#)s_nextafter.c 5.1 93/09/24 */
/*
@ -13,12 +13,14 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: s_nextafterl.c,v 1.3 2013/02/14 08:56:56 matt Exp $");
__RCSID("$NetBSD: s_nextafterl.c,v 1.4 2013/07/18 22:31:13 matt Exp $");
#include <float.h>
#include <math.h>
#include <machine/ieee.h>
#ifdef __HAVE_LONG_DOUBLE
#ifdef EXT_EXP_INFNAN
#if LDBL_MAX_EXP != 0x4000
#error "Unsupported long double format"
@ -98,3 +100,5 @@ nextafterl(long double x, long double y)
return ux.extu_ld;
}
#endif
#endif /* __HAVE_LONG_DOUBLE */