mirror of https://github.com/axmolengine/axmol.git
Fix CCFileStream write bits
make it behavior same with fopen "wb"
This commit is contained in:
parent
9f7590ffa1
commit
03527fd45b
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define O_READ_FLAGS O_BINARY | O_RDONLY, S_IREAD
|
#define O_READ_FLAGS O_BINARY | O_RDONLY, S_IREAD
|
||||||
#define O_WRITE_FLAGS O_CREAT | O_RDWR | O_BINARY, S_IWRITE | S_IREAD
|
#define O_WRITE_FLAGS O_CREAT | O_RDWR | O_BINARY | O_TRUNC, S_IWRITE | S_IREAD
|
||||||
#define O_APPEND_FLAGS O_APPEND | O_CREAT | O_RDWR | O_BINARY, S_IWRITE | S_IREAD
|
#define O_APPEND_FLAGS O_APPEND | O_CREAT | O_RDWR | O_BINARY, S_IWRITE | S_IREAD
|
||||||
#define posix_open ::_open
|
#define posix_open ::_open
|
||||||
#define posix_close ::_close
|
#define posix_close ::_close
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
#define posix_write ::_write
|
#define posix_write ::_write
|
||||||
#else
|
#else
|
||||||
#define O_READ_FLAGS O_RDONLY, S_IRUSR
|
#define O_READ_FLAGS O_RDONLY, S_IRUSR
|
||||||
#define O_WRITE_FLAGS O_CREAT | O_RDWR, S_IRWXU
|
#define O_WRITE_FLAGS O_CREAT | O_RDWR | O_TRUNC, S_IRWXU
|
||||||
#define O_APPEND_FLAGS O_APPEND | O_CREAT | O_RDWR, S_IRWXU
|
#define O_APPEND_FLAGS O_APPEND | O_CREAT | O_RDWR, S_IRWXU
|
||||||
#define posix_open ::open
|
#define posix_open ::open
|
||||||
#define posix_close ::close
|
#define posix_close ::close
|
||||||
|
|
Loading…
Reference in New Issue