diff options
Diffstat (limited to 'lib/libc/arch/vax/gen/isfinite.c')
-rw-r--r-- | lib/libc/arch/vax/gen/isfinite.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libc/arch/vax/gen/isfinite.c b/lib/libc/arch/vax/gen/isfinite.c index 9e283e56e78..cb54faf4fbb 100644 --- a/lib/libc/arch/vax/gen/isfinite.c +++ b/lib/libc/arch/vax/gen/isfinite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isfinite.c,v 1.1 2008/07/24 09:31:07 martynas Exp $ */ +/* $OpenBSD: isfinite.c,v 1.2 2008/12/09 19:52:34 martynas Exp $ */ /* * Copyright (c) Martynas Venckus <martynas@openbsd.org> * @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <machine/cdefs.h> +#include <math.h> + /* ARGSUSED */ int __isfinite(double d) @@ -28,3 +31,15 @@ __isfinitef(float f) { return(1); } + +#ifdef __weak_alias +__weak_alias(__isfinitel, __isfinite); +#endif /* __weak_alias */ + +/* + * 3BSD compatibility aliases. + */ +#ifdef __weak_alias +__weak_alias(finite, __isfinite); +__weak_alias(finitef, __isfinitef); +#endif /* __weak_alias */ |