mirror of https://github.com/axmolengine/axmol.git
Optimize macro posix_fsetsize, use ',' is better [ci build]
This commit is contained in:
parent
0583f9a4e0
commit
ff24bdf192
|
@ -52,7 +52,7 @@
|
|||
#define posix_read ::read
|
||||
#define posix_write ::write
|
||||
#define posix_fd2fh(fd) (fd)
|
||||
#define posix_fsetsize(fd, size) ::ftruncate(fd, size); ::lseek(fd, 0, SEEK_SET)
|
||||
#define posix_fsetsize(fd, size) (::ftruncate(fd, size), ::lseek(fd, 0, SEEK_SET))
|
||||
#endif
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -122,4 +122,4 @@ private:
|
|||
const PXIoF* _iof{};
|
||||
};
|
||||
|
||||
NS_CC_END
|
||||
NS_CC_END
|
||||
|
|
Loading…
Reference in New Issue