mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 21:31:20 +00:00
Fix implementation of open on windows.
This commit is contained in:
parent
60c92a7431
commit
710725ea9d
@ -64,7 +64,8 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
int open(const char *path, int oflag, int pmode) {
|
int open(const char *path, int oflag, int pmode) {
|
||||||
_sopen_s(fd, path, oflag, _SH_DENYNO, pmode);
|
int fd = -1;
|
||||||
|
_sopen_s(&fd, path, oflag, _SH_DENYNO, pmode);
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user