+2013-05-15 Niels Kristian Bech Jensen <nkbj@users.sourceforge.net>
+
+ * include/control.h: Correct inclusion of _mingw.h. Issue: #1956.
+ * include/sys/stat.h: Include string.h as appropriate for memset
+ declaration. Issue: #1956.
+ * include/wchar.h: Ditto.
+
2013-05-15 Earnie Boyd <earnie@users.sourceforge.net>
* .gitignore: Add nbproject folder.
* NEWS: Add note about the globbing change.
+ * include/_mingw.h: Correct check for GCC version >= 3.4.5. Issue: #1958.
2013-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
#error ERROR: You must use a GNU Compiler.
#endif
-#if (__GNUC__ < 3 || !defined(__GNUC_MINOR__) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4 && __GNUC_PATCHLEVEL__ < 5))
+#if (__GNUC__ < 3 || !defined(__GNUC_MINOR__) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) || (__GNUC__ == 3 && __GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ < 5))
#error ERROR: You must use a GNU Compiler version >= 3.4.5.
#endif
#ifndef _CONTROL_H
#define _CONTROL_H
#pragma GCC system_header
-#include <mingw.h>
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
_CRTIMP int __cdecl __MINGW_NOTHROW _fstat32i64 (int, struct _stat32i64*);
int __cdecl __MINGW_NOTHROW _fstat64i32 (int, struct _stat64i32*);
#ifndef __NO_INLINE__
+#include <string.h> /* Need memset declaration */
__CRT_INLINE int __cdecl _fstat64i32(int desc, struct _stat64i32 *_stat)
{
struct _stat64 st;
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat32i64 (const wchar_t*, struct _stat32i64*);
int __cdecl __MINGW_NOTHROW _wstat64i32 (const wchar_t*, struct _stat64i32*);
#ifndef __NO_INLINE__
+#include <string.h> /* Need memset declaration */
__CRT_INLINE int __cdecl _wstat64i32(const wchar_t *fname, struct _stat64i32 *_stat)
{
struct _stat64 st;
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat32i64 (const wchar_t*, struct _stat32i64*);
int __cdecl __MINGW_NOTHROW _wstat64i32 (const wchar_t*, struct _stat64i32*);
#ifndef __NO_INLINE__
+#include <string.h> /* Need memset declaration. */
__CRT_INLINE int __cdecl _wstat64i32(const wchar_t *fname, struct _stat64i32 *_stat)
{
struct _stat64 st;