From: Owen Shepherd Date: Sun, 30 Dec 2012 20:31:02 +0000 (+0000) Subject: Make _PDCLIB_mbstate_t available in the type namespace, not just the struct tag namespace X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=3f732ec3f85c5db7c563eba5fcb24a7ce69ec79e Make _PDCLIB_mbstate_t available in the type namespace, not just the struct tag namespace --- diff --git a/includes/uchar.h b/includes/uchar.h index d93d50c..1419df6 100644 --- a/includes/uchar.h +++ b/includes/uchar.h @@ -22,7 +22,7 @@ typedef _PDCLIB_size_t size_t; #ifndef _PDCLIB_MBSTATE_T_DEFINED #define _PDCLIB_MBSTATE_T_DEFINED _PDCLIB_MBSTATE_T_DEFINED -typedef struct _PDCLIB_mbstate_t mbstate_t; +typedef _PDCLIB_mbstate_t mbstate_t; #endif #ifndef __cplusplus diff --git a/includes/wchar.h b/includes/wchar.h index 34f2ef3..2740d00 100644 --- a/includes/wchar.h +++ b/includes/wchar.h @@ -32,7 +32,7 @@ typedef _PDCLIB_wint_t wint_t; #ifndef _PDCLIB_MBSTATE_T_DEFINED #define _PDCLIB_MBSTATE_T_DEFINED _PDCLIB_MBSTATE_T_DEFINED -typedef struct _PDCLIB_mbstate_t mbstate_t; +typedef _PDCLIB_mbstate_t mbstate_t; #endif struct tm; diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index 53f6ae3..e9de2e4 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -422,8 +422,8 @@ struct _PDCLIB_ctype_t /* mbstate_t */ /* -------------------------------------------------------------------------- */ -struct _PDCLIB_mbstate_t { +typedef struct _PDCLIB_mbstate_t { _PDCLIB_uint32_t st[4]; -}; +} _PDCLIB_mbstate_t; #endif