aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/winlean.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-06-28 14:06:06 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-06-28 14:06:06 +0000
commit06e429fd6d6684da9ed94ee803ae75561bcb5eb3 (patch)
tree68c72a51762551b579bd40c8c0334e19486edfd8 /winsup/cygwin/winlean.h
parent27c4e2e1ee8ace9c403c0078df6ebcbb9e210af8 (diff)
downloadnewlib-06e429fd6d6684da9ed94ee803ae75561bcb5eb3.zip
newlib-06e429fd6d6684da9ed94ee803ae75561bcb5eb3.tar.gz
newlib-06e429fd6d6684da9ed94ee803ae75561bcb5eb3.tar.bz2
* 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 e5eeeb2..7d40b83 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*/