Commit f0b5cd89 authored by Claudio Bley's avatar Claudio Bley Committed by Eli Zaretskii

Fix MS-Windows build with MinGW runtime 4.x.

 nt/inc/sys/stat.h (_WSTAT_DEFINED): Define, to avoid compilation
 failures when wchar.h is included.
parent 5d1a2888
2014-01-11 Claudio Bley <claudio.bley@googlemail.com>
* inc/sys/stat.h (_WSTAT_DEFINED): Define, to avoid compilation
failures when wchar.h is included.
2014-01-11 Fabrice Popineau <fabrice.popineau@supelec.fr>
* inc/ms-w32.h (pthread_sigmask): Undefine if defined, for MinGW64.
......
......@@ -141,6 +141,13 @@ extern int w32_stat_get_owner_group;
/* Prevent redefinition by other headers, e.g. wchar.h. */
#define _STAT_DEFINED
/* This prevents definition in MinGW's wchar.h of inline functions
that use struct _stat64i32 etc., which we don't define and don't
support in our implementation of 'stat' and 'fstat'. If we don't
prevent definition of those inline functions, any program (e.g.,
test programs run by configure) that includes both wchar.h and
sys/stat.h will fail to compile. */
#define _WSTAT_DEFINED
int __cdecl __MINGW_NOTHROW fstat (int, struct stat*);
int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment