more and more new fixes
This commit is contained in:
@@ -228,6 +228,9 @@ inline int eof(int h) {
|
||||
}
|
||||
|
||||
inline int sopen(const char* path, int access, int shflag, int mode) {
|
||||
#ifdef __UNIX__
|
||||
shflag = 0;
|
||||
#endif
|
||||
return open(path, access|shflag, mode);
|
||||
}
|
||||
|
||||
|
@@ -39,19 +39,11 @@
|
||||
#if defined(__MINGW32__) // SH_COMPAT doesn't work in Mingw32
|
||||
#undef SH_COMPAT
|
||||
#endif
|
||||
#elif defined(__CYGWIN__)
|
||||
#elif !defined(SH_DENYNO)
|
||||
#define SH_DENYRW 0x10 // Deny read/write
|
||||
#define SH_DENYWR 0x20 // Deny write
|
||||
#define SH_DENYRD 0x30 // Deny read
|
||||
#define SH_DENYNO 0x40 // Deny nothing
|
||||
#else
|
||||
#ifndef SH_DENYNO
|
||||
#define SH_DENYNO 0
|
||||
#define SH_DENYRD 0
|
||||
#define SH_DENYWR 0
|
||||
#define SH_DENYRW 0
|
||||
#define SH_COMPAT 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SH_COMPAT
|
||||
|
Reference in New Issue
Block a user