From fa63395715e4241b43c8e0ad3b3448ecdfcf4d53 Mon Sep 17 00:00:00 2001 From: Peter Avalos Date: Sun, 29 Jul 2007 22:20:10 +0000 Subject: [PATCH] Add W{INT,CHAR}_{MIN,MAX} to stdint.h IAW ISO/IEC 9899:1999 7.18.3. Requested and Reviewed-by: joerg --- sys/cpu/i386/include/stdint.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/sys/cpu/i386/include/stdint.h b/sys/cpu/i386/include/stdint.h index 80c057f15e..8ce9cfea6c 100644 --- a/sys/cpu/i386/include/stdint.h +++ b/sys/cpu/i386/include/stdint.h @@ -36,7 +36,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/i386/include/_stdint.h,v 1.1 2002/07/29 17:41:07 mike Exp $ - * $DragonFly: src/sys/cpu/i386/include/stdint.h,v 1.7 2006/11/07 06:43:22 dillon Exp $ + * $DragonFly: src/sys/cpu/i386/include/stdint.h,v 1.8 2007/07/29 22:20:10 pavalos Exp $ */ #ifndef _CPU_STDINT_H_ @@ -213,7 +213,22 @@ typedef volatile int __atomic_intr_t; /* Limit of size_t. */ #define SIZE_MAX UINT32_MAX -/* NOTE: wchar and wint macros in sys/stdint.h */ +/* Also possibly defined in */ +/* Limits of wchar_t. */ +#ifndef WCHAR_MIN +#define WCHAR_MIN INT32_MIN +#endif +#ifndef WCHAR_MAX +#define WCHAR_MAX INT32_MAX +#endif + +/* Limits of wint_t. */ +#ifndef WINT_MIN +#define WINT_MIN INT32_MIN +#endif +#ifndef WINT_MAX +#define WINT_MAX INT32_MAX +#endif /* * ISO/IEC 9899:1999 -- 2.41.0