This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
mbstate_t and EOF in sys/_types.h for Cygwin.
- From: Kazuhiro Fujieda <fujieda at jaist dot ac dot jp>
- To: newlib at sources dot redhat dot com
- Date: 16 Sep 2002 23:22:08 +0900
- Subject: mbstate_t and EOF in sys/_types.h for Cygwin.
Why are mbstate_t and EOF defined as the following in
sys/_types.h for only Cygwin?
#ifdef __CYGWIN__
# ifndef MBSTATE_T
# define MBSTATE_T
typedef _mbstate_t mbstate_t;
# endif /* MBSTATE_T */
# define WEOF (0xffffffffu)
#endif /* __CYGWIN__ */
`mbstate_t' and WEOF are standardized in ISO C. I can't
understand why such standard definitions are defined in
sys/_types.h.
BTW, MBSTATE_T is a incorrect macro name. ISO C requires
implementation-specific macro names to begin with a underscore.
____
| AIST Kazuhiro Fujieda <fujieda@jaist.ac.jp>
| HOKURIKU Center for Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology