From c210a6ea0685cb5827a9dc7e4ae8d4cae9ea8651 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 5 Sep 2002 15:26:42 +0000 Subject: 2002-09-05 Kazuhiro Fujieda * libc/include/wchar.h (WCHAR_MAX): Only define if not already defined. --- newlib/libc/include/wchar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc') diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index ec95162..4cefc5d 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -23,11 +23,13 @@ #define WCHAR_MIN 0 #endif +#ifndef WCHAR_MAX #ifdef __WCHAR_MAX__ #define WCHAR_MAX __WCHAR_MAX__ #else #define WCHAR_MAX 0x7fffffffu #endif +#endif #ifndef MBSTATE_T #define MBSTATE_T -- cgit v1.1