Fix MinGW64 compilation warnings in w32.c and w32proc.c.
src/w32proc.c (IsValidLocale) [__GNUC__]: Don't declare prototype, since MinGW's w32api headers do. This avoids compiler warnings. src/w32.c (FSCTL_GET_REPARSE_POINT) [_MSC_VER || _W64]: Don't define if already defined.
This commit is contained in:
parent
a0adf07cf0
commit
c86f791f69
2 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,11 @@
|
|||
2013-03-27 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* w32proc.c (IsValidLocale) [__GNUC__]: Don't declare prototype,
|
||||
since MinGW's w32api headers do. This avoids compiler warnings.
|
||||
|
||||
* w32.c (FSCTL_GET_REPARSE_POINT) [_MSC_VER || _W64]: Don't define
|
||||
if already defined.
|
||||
|
||||
2013-03-26 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* w32.c (_REPARSE_DATA_BUFFER): Condition by _MSVC and _W64.
|
||||
|
|
|
|||
|
|
@ -174,9 +174,12 @@ typedef struct _REPARSE_DATA_BUFFER {
|
|||
#ifndef CTL_CODE
|
||||
#define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m))
|
||||
#endif
|
||||
/* MinGW64 defines FSCTL_GET_REPARSE_POINT on winioctl.h. */
|
||||
#ifndef FSCTL_GET_REPARSE_POINT
|
||||
#define FSCTL_GET_REPARSE_POINT \
|
||||
CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* TCP connection support. */
|
||||
#include <sys/socket.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue