summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-06-26 22:27:15 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-06-26 22:27:15 +0000
commitf52811e0f64ded1787e6b982ff1191045a56e307 (patch)
treee137cd87d507d3ac4e13f9bdc152bd5a4a140421
parentddcac36b7576fd334778144945b41efe4faed7d7 (diff)
redefine MAXFLOAT in vax terms
-rw-r--r--include/math.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/math.h b/include/math.h
index 4daefae3426..398dd3b84e1 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: math.h,v 1.6 2002/02/16 21:27:17 millert Exp $ */
+/* $OpenBSD: math.h,v 1.7 2003/06/26 22:27:14 jason Exp $ */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -41,7 +41,12 @@ extern char __infinity[];
#define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
+#ifdef __vax__
+#define MAXFLOAT ((float)1.7e38)
+#else
#define MAXFLOAT ((float)3.40282346638528860e+38)
+#endif
+
extern int signgam;
#if !defined(_XOPEN_SOURCE)