+2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Correct conditional compilation block nesting errors.
+
+ * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
+ them balanced within, and around, conditional compilation blocks.
+
2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
Feature test _MINGW32_EXTENDED_SOURCE renamed.
#define stdout (&_iob[STDOUT_FILENO])
#define stderr (&_iob[STDERR_FILENO])
+/* Need to close the current _STDIO_H specific block here...
+ */
+#endif
+/* ...because, we need this regardless of the inclusion mode...
+ */
_BEGIN_C_DECLS
-/* File Operations
+#ifdef _STDIO_H
+/* ...then revert to _STDIO_H specific mode, to declare...
+ *
+ *
+ * File Operations
*/
_CRTIMP __cdecl __MINGW_NOTHROW FILE * fopen (const char *, const char *);
_CRTIMP __cdecl __MINGW_NOTHROW FILE * freopen (const char *, const char *, FILE *);
}
#endif /* !__NO_INLINE__ */
#endif /* _POSIX_C_SOURCE */
+
+_END_C_DECLS
+
#endif /* _TIME_H included in its own right */
#if __need_wchar_decls && ! (defined _TIME_H && defined _WCHAR_H)
* _wctime() function, are visible only on the first time parse, when
* one of either _TIME_H, or _WCHAR_H, but not both, is defined.
*/
+_BEGIN_C_DECLS
+
#if defined __MSVCRT__ && ! defined __STRICT_ANSI__
_CRTIMP __cdecl __MINGW_NOTHROW wchar_t *_wasctime (const struct tm *);
_CRTIMP __cdecl __MINGW_NOTHROW wchar_t *_wstrdate (wchar_t *);
_CRTIMP __cdecl __MINGW_NOTHROW
size_t wcsftime (wchar_t *, size_t, const wchar_t *, const struct tm *);
-#endif /* ! (defined _TIME_H && defined _WCHAR_H) */
-
_END_C_DECLS
+#endif /* ! (defined _TIME_H && defined _WCHAR_H) */
+
/* We're done with all <time.h> specific content selectors; clear them.
*/
#undef __need_time_t