This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] 2nd try: WCHAR_{MAX,INT} and correct error in wcscmp and wcsncmp.


>>> On Wed, 04 Sep 2002 14:30:40 -0400
>>> "J. Johnston" <jjohnstn@redhat.com> said:

> 1. The check in wchar.h is incorrect.  It should be #ifdef __WCHAR_MAX__.
> I have corrected this.

Thank you.
Isn't it need to also enclose #ifndef WCHAR_MAX like the following?
____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  Center for Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology
Index: wchar.h
===================================================================
RCS file: /home/fs108/fujieda/work/cvs_root/cygwin-i18n/newlib/libc/include/Attic/wchar.h,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 wchar.h
--- wchar.h	2002/09/05 03:04:30	1.1.2.9
+++ wchar.h	2002/09/05 03:10:36
@@ -23,10 +23,12 @@
 #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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]