From 4ae316bcc93d137d2ece2bcf6a8a85fca983a41b Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 16 Mar 2012 02:38:37 +0100 Subject: [PATCH] Windows: fix compiler warnings --- src/win/winapi.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/win/winapi.h b/src/win/winapi.h index b65ef0d0..a98806ae 100644 --- a/src/win/winapi.h +++ b/src/win/winapi.h @@ -4323,10 +4323,17 @@ typedef NTSTATUS (NTAPI *sNtSetInformationFile) /* * Kernel32 headers */ -#define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1 -#define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2 +#ifndef FILE_SKIP_COMPLETION_PORT_ON_SUCCESS +# define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1 +#endif -#define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1 +#ifndef FILE_SKIP_SET_EVENT_ON_HANDLE +# define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2 +#endif + +#ifndef SYMBOLIC_LINK_FLAG_DIRECTORY +# define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1 +#endif #ifdef __MINGW32__ typedef struct _OVERLAPPED_ENTRY {