Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-06-28 18:06:06 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-06-28 18:06:06 +0400
commit06e429fd6d6684da9ed94ee803ae75561bcb5eb3 (patch)
tree68c72a51762551b579bd40c8c0334e19486edfd8 /winsup/cygwin/winlean.h
parent27c4e2e1ee8ace9c403c0078df6ebcbb9e210af8 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/winlean.h')
-rw-r--r--winsup/cygwin/winlean.h5
1 files changed, 5 insertions, 0 deletions
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*/