PIPS
wchar.in.h File Reference
#include <stddef.h>
#include <stdio.h>
#include <time.h>
+ Include dependency graph for wchar.in.h:

Go to the source code of this file.

Macros

#define _GL_ALREADY_INCLUDING_WCHAR_H
 A substitute for ISO C99 <wchar.h>, for platforms that have issues. More...
 
#define _   @GUARD_PREFIX@_WCHAR_H
 Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before <wchar.h>. More...
 
#define _GL_ATTRIBUTE_PURE   /**empty */
 The attribute feature is available in gcc versions 2.5 and later. More...
 
#define wint_t   int
 The definitions of _GL_FUNCDECL_RPL etc. More...
 
#define WEOF   -1
 
#define mbstate_t   rpl_mbstate_t
 
#define GNULIB_defined_mbstate_t   1
 

Typedefs

typedef int rpl_mbstate_t
 Override mbstate_t if it is too small. More...
 

Macro Definition Documentation

◆ _

#define _   @GUARD_PREFIX@_WCHAR_H

Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before <wchar.h>.

BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included before <wchar.h>. In some builds of uClibc, <wchar.h> is nonexistent and wchar_t is defined by <stddef.h>. But avoid namespace pollution on glibc systems.
Include the original <wchar.h> if it exists. Some builds of uClibc lack it.
The include_next requires a split double-inclusion guard.

Definition at line 84 of file wchar.in.h.

◆ _GL_ALREADY_INCLUDING_WCHAR_H

#define _GL_ALREADY_INCLUDING_WCHAR_H

A substitute for ISO C99 <wchar.h>, for platforms that have issues.

Copyright (C) 2007-2014 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
Written by Eric Blake.
Normal invocation convention.

Definition at line 53 of file wchar.in.h.

◆ _GL_ATTRIBUTE_PURE

#define _GL_ATTRIBUTE_PURE   /**empty */

The attribute feature is available in gcc versions 2.5 and later.

The attribute pure was added in gcc 2.96.

Definition at line 91 of file wchar.in.h.

◆ GNULIB_defined_mbstate_t

#define GNULIB_defined_mbstate_t   1

Definition at line 134 of file wchar.in.h.

◆ mbstate_t

#define mbstate_t   rpl_mbstate_t

Definition at line 133 of file wchar.in.h.

◆ WEOF

#define WEOF   -1

Definition at line 105 of file wchar.in.h.

◆ wint_t

#define wint_t   int

The definitions of _GL_FUNCDECL_RPL etc.

are copied here.
The definition of _GL_ARG_NONNULL is copied here.
The definition of _GL_WARN_ON_USE is copied here.
Define wint_t and WEOF. (Also done in wctype.in.h.)

Definition at line 103 of file wchar.in.h.

Typedef Documentation

◆ rpl_mbstate_t

typedef int rpl_mbstate_t

Override mbstate_t if it is too small.

On IRIX 6.5, sizeof (mbstate_t) == 1, which is not sufficient for implementing mbrtowc for encodings like UTF-8.

Definition at line 131 of file wchar.in.h.