diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-03-05 17:15:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-03-05 17:15:24 +0000 |
commit | 5a97e28f6a103523c0ab7092c9ac0d270fb7b680 (patch) | |
tree | 2565df9502b9ab138952e806001fc80567ee64cf /newlib | |
parent | 5e99eb1104f49b6d1e88ea09e8bac734fe668bb3 (diff) | |
download | newlib-5a97e28f6a103523c0ab7092c9ac0d270fb7b680.zip newlib-5a97e28f6a103523c0ab7092c9ac0d270fb7b680.tar.gz newlib-5a97e28f6a103523c0ab7092c9ac0d270fb7b680.tar.bz2 |
* libc/include/stdio.h (FILE): Protect typedef from redefinition.
* libc/include/wchar.h: Ditto.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/stdio.h | 3 | ||||
-rw-r--r-- | newlib/libc/include/wchar.h | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 146b743..ecaed14 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2015-03-05 Craig Howland <howland@LGSInnovations.com> + + * libc/include/stdio.h (FILE): Protect typedef from redefinition. + * libc/include/wchar.h: Ditto. + 2015-02-25 Gedare Bloom <gedare@rtems.org> * libc/include/machine/time.h (_CLOCKS_PER_SEC_): redefine for RTEMS. diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index e336ee6..9d8fd86 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -49,7 +49,10 @@ _BEGIN_STD_C +#if !defined(__FILE_defined) typedef __FILE FILE; +# define __FILE_defined +#endif #ifdef __CYGWIN__ typedef _fpos64_t fpos_t; diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index d19dae9..6c2b8e4 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -49,7 +49,10 @@ _BEGIN_STD_C /* As in stdio.h, <sys/reent.h> defines __FILE. */ +#if !defined(__FILE_defined) typedef __FILE FILE; +# define __FILE_defined +#endif /* As required by POSIX.1-2008, declare tm as incomplete type. The actual definition is in time.h. */ |