wchar.in.h (bison-3.8.1.tar.xz) | : | wchar.in.h (bison-3.8.2.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 75 | skipping to change at line 75 | |||
# include <features.h> /* for __GLIBC__ */ | # include <features.h> /* for __GLIBC__ */ | |||
#endif | #endif | |||
/* In some builds of uClibc, <wchar.h> is nonexistent and wchar_t is defined | /* In some builds of uClibc, <wchar.h> is nonexistent and wchar_t is defined | |||
by <stddef.h>. | by <stddef.h>. | |||
But avoid namespace pollution on glibc systems. */ | But avoid namespace pollution on glibc systems. */ | |||
#if !(defined __GLIBC__ && !defined __UCLIBC__) | #if !(defined __GLIBC__ && !defined __UCLIBC__) | |||
# include <stddef.h> | # include <stddef.h> | |||
#endif | #endif | |||
/* Get free(). */ | ||||
#include <stdlib.h> | ||||
/* Include the original <wchar.h> if it exists. | /* Include the original <wchar.h> if it exists. | |||
Some builds of uClibc lack it. */ | Some builds of uClibc lack it. */ | |||
/* The include_next requires a split double-inclusion guard. */ | /* The include_next requires a split double-inclusion guard. */ | |||
#if @HAVE_WCHAR_H@ | #if @HAVE_WCHAR_H@ | |||
# @INCLUDE_NEXT@ @NEXT_WCHAR_H@ | # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ | |||
#endif | #endif | |||
#undef _GL_ALREADY_INCLUDING_WCHAR_H | #undef _GL_ALREADY_INCLUDING_WCHAR_H | |||
#ifndef _@GUARD_PREFIX@_WCHAR_H | #ifndef _@GUARD_PREFIX@_WCHAR_H | |||
skipping to change at line 150 | skipping to change at line 147 | |||
# if !GNULIB_defined_mbstate_t | # if !GNULIB_defined_mbstate_t | |||
# if !(defined _AIX || defined _MSC_VER) | # if !(defined _AIX || defined _MSC_VER) | |||
typedef int rpl_mbstate_t; | typedef int rpl_mbstate_t; | |||
# undef mbstate_t | # undef mbstate_t | |||
# define mbstate_t rpl_mbstate_t | # define mbstate_t rpl_mbstate_t | |||
# endif | # endif | |||
# define GNULIB_defined_mbstate_t 1 | # define GNULIB_defined_mbstate_t 1 | |||
# endif | # endif | |||
#endif | #endif | |||
/* Declare 'free' if needed for _GL_ATTRIBUTE_DEALLOC_FREE. */ | ||||
#if (@REPLACE_FREE@ && !defined free \ | ||||
&& !(defined __cplusplus && defined GNULIB_NAMESPACE)) | ||||
_GL_EXTERN_C void free (void *); | ||||
# define free rpl_free | ||||
#endif | ||||
_GL_EXTERN_C void free (void *); | ||||
/* Convert a single-byte character to a wide character. */ | /* Convert a single-byte character to a wide character. */ | |||
#if @GNULIB_BTOWC@ | #if @GNULIB_BTOWC@ | |||
# if @REPLACE_BTOWC@ | # if @REPLACE_BTOWC@ | |||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | |||
# undef btowc | # undef btowc | |||
# define btowc rpl_btowc | # define btowc rpl_btowc | |||
# endif | # endif | |||
_GL_FUNCDECL_RPL (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE); | _GL_FUNCDECL_RPL (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE); | |||
_GL_CXXALIAS_RPL (btowc, wint_t, (int c)); | _GL_CXXALIAS_RPL (btowc, wint_t, (int c)); | |||
# else | # else | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 8 lines changed or added |