diff --git a/sys/arch/arm32/include/limits.h b/sys/arch/arm32/include/limits.h index 60ef5fad6337..439d47df9e7b 100644 --- a/sys/arch/arm32/include/limits.h +++ b/sys/arch/arm32/include/limits.h @@ -1,4 +1,4 @@ -/* $NetBSD: limits.h,v 1.5 1998/08/06 11:22:57 kleink Exp $ */ +/* $NetBSD: limits.h,v 1.6 1998/11/16 04:12:29 mycroft Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. @@ -73,4 +73,18 @@ #endif /* !_POSIX_C_SOURCE && !_XOPEN_SOURCE */ #endif /* !_ANSI_SOURCE */ +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \ + defined(_XOPEN_SOURCE) +#define LONG_BIT 32 +#define WORD_BIT 32 + +#define DBL_DIG 15 +#define DBL_MAX 1.7976931348623157E+308 +#define DBL_MIN 2.2250738585072014E-308 + +#define FLT_DIG 6 +#define FLT_MAX 3.40282347E+38F +#define FLT_MIN 1.17549435E-38F +#endif + #endif /* _ARM32_LIMITS_H_ */ diff --git a/sys/arch/powerpc/include/limits.h b/sys/arch/powerpc/include/limits.h index 728017e4dfd4..4c0f7fb02b63 100644 --- a/sys/arch/powerpc/include/limits.h +++ b/sys/arch/powerpc/include/limits.h @@ -1,4 +1,4 @@ -/* $NetBSD: limits.h,v 1.4 1998/08/06 11:25:05 kleink Exp $ */ +/* $NetBSD: limits.h,v 1.5 1998/11/16 04:12:29 mycroft Exp $ */ /*- * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -67,4 +67,18 @@ #endif /* !_POSIX_C_SOURCE && !_XOPEN_SOURCE */ #endif /* !_ANSI_SOURCE */ +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \ + defined(_XOPEN_SOURCE) +#define LONG_BIT 32 +#define WORD_BIT 32 + +#define DBL_DIG 15 +#define DBL_MAX 1.7976931348623157E+308 +#define DBL_MIN 2.2250738585072014E-308 + +#define FLT_DIG 6 +#define FLT_MAX 3.40282347E+38F +#define FLT_MIN 1.17549435E-38F +#endif + #endif /* _MACHINE_LIMITS_H_ */