1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-11 16:08:13 +00:00

Avoid MS-Windows compilation errors when struct stat is redefined.

nt/inc/sys/stat.h (_STAT_DEFINED): Define, to prevent redefinitions
 by other headers.
This commit is contained in:
Eli Zaretskii 2012-02-04 15:24:07 +02:00
parent 3b95a6f950
commit e0aeebda1f
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-02-04 Eli Zaretskii <eliz@gnu.org>
* inc/sys/stat.h (_STAT_DEFINED): Define, to prevent redefinitions
by other headers.
2011-11-27 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
* inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs.

View File

@ -97,6 +97,9 @@ struct stat {
char st_gname[260];
};
/* Prevent redefinition by other headers, e.g. wchar.h. */
#define _STAT_DEFINED
_CRTIMP int __cdecl __MINGW_NOTHROW fstat (int, struct stat*);
_CRTIMP int __cdecl __MINGW_NOTHROW chmod (const char*, int);
_CRTIMP int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*);