From 06e429fd6d6684da9ed94ee803ae75561bcb5eb3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 28 Jun 2012 14:06:06 +0000 Subject: * exceptions.cc (RtlUnwind): Align declaration with MSDN. * ntdll.h: Define CreateDisposition Flags. Add comments. * winlean.h: Define FILE_SHARE_VALID_FLAGS if using Mingw64 headers. --- winsup/cygwin/winlean.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'winsup/cygwin/winlean.h') diff --git a/winsup/cygwin/winlean.h b/winsup/cygwin/winlean.h index e5eeeb2ac..7d40b8321 100644 --- a/winsup/cygwin/winlean.h +++ b/winsup/cygwin/winlean.h @@ -37,4 +37,9 @@ details. */ use this function. Use GetSystemWindowsDirectoryW. */ #define GetWindowsDirectoryW dont_use_GetWindowsDirectory #define GetWindowsDirectoryA dont_use_GetWindowsDirectory +/* FILE_SHARE_VALID_FLAGS is a Mingw32 invention not backed by the system + headers. Therefore it's not defined by Mingw64, either. */ +#ifdef __MINGW64_VERSION_MAJOR +#define FILE_SHARE_VALID_FLAGS (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE) +#endif #endif /*_WINLEAN_H*/ -- cgit v1.2.3