mirror of
https://github.com/facebook/zstd.git
synced 2025-10-06 00:04:13 -04:00
Also Pass Mode Bits in on Windows
I think in some unix emulation environments on Windows, (cygwin?) mode bits are somehow respected. So we might as well pass them in. Can't hurt.
This commit is contained in:
parent
bea1b2ba70
commit
da61918c75
@ -74,11 +74,12 @@
|
||||
|
||||
#define FNSPACE 30
|
||||
|
||||
#if !defined(_WIN32)
|
||||
/* Default file permissions 0666 (modulated by umask) */
|
||||
#if !defined(_WIN32)
|
||||
/* These macros aren't defined on windows. */
|
||||
#define DEFAULT_FILE_PERMISSIONS (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
|
||||
#else
|
||||
#define DEFAULT_FILE_PERMISSIONS (0)
|
||||
#define DEFAULT_FILE_PERMISSIONS (0666)
|
||||
#endif
|
||||
|
||||
/*-*************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user