From: Corinna Vinschen Date: Thu, 15 Oct 2009 08:23:27 +0000 (+0000) Subject: * libc/include/wchar.h (struct tm0: Declare as incomplete type. X-Git-Tag: sid-snapshot-20091101~19 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=1b13009b2a1eb9a969190d7463e4434386f5f440;p=newlib-cygwin.git * libc/include/wchar.h (struct tm0: Declare as incomplete type. --- diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 969a6bc6a..539be4563 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2009-10-15 Corinna Vinschen + + * libc/include/wchar.h (struct tm0: Declare as incomplete type. + 2009-10-15 Corinna Vinschen * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index 252e59d81..234c71e00 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -38,6 +38,10 @@ _BEGIN_STD_C +/* As required by POSIX.1-2008, declare tm as incomplete type. + The actual definition is in time.h. */ +struct tm; + #ifndef _MBSTATE_T #define _MBSTATE_T typedef _mbstate_t mbstate_t;