diff options
Diffstat (limited to 'winsup/cygwin/winlean.h')
-rw-r--r-- | winsup/cygwin/winlean.h | 5 |
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*/ |