diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/alltypes.h.in | 1 | ||||
-rw-r--r-- | include/stdio.h | 4 | ||||
-rw-r--r-- | include/wchar.h | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/include/alltypes.h.in b/include/alltypes.h.in index 622ca01d..4cc879b1 100644 --- a/include/alltypes.h.in +++ b/include/alltypes.h.in @@ -57,6 +57,7 @@ TYPEDEF struct { unsigned __attr; } pthread_condattr_t; TYPEDEF struct { unsigned __attr; } pthread_barrierattr_t; TYPEDEF struct { unsigned __attr[2]; } pthread_rwlockattr_t; +STRUCT _IO_FILE { char __x; }; TYPEDEF struct _IO_FILE FILE; TYPEDEF struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t; diff --git a/include/stdio.h b/include/stdio.h index afadd912..3604198c 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -11,6 +11,10 @@ extern "C" { #define __NEED___isoc_va_list #define __NEED_size_t +#if __STDC_VERSION__ < 201112L +#define __NEED_struct__IO_FILE +#endif + #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \ || defined(_BSD_SOURCE) diff --git a/include/wchar.h b/include/wchar.h index 369b1e9f..88eb55b1 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -14,6 +14,10 @@ extern "C" { #define __NEED_wint_t #define __NEED_mbstate_t +#if __STDC_VERSION__ < 201112L +#define __NEED_struct__IO_FILE +#endif + #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define __NEED_locale_t |