We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fb2114 commit 0bbb7d7Copy full SHA for 0bbb7d7
file.hpp
@@ -37,7 +37,7 @@ struct file : inode {
37
38
static auto truncate(const string& filename, uint64_t size) -> bool {
39
#if defined(API_POSIX)
40
- return truncate(filename, size) == 0;
+ return ::truncate(filename, size) == 0;
41
#elif defined(API_WINDOWS)
42
if(auto fp = _wfopen(utf16_t(filename), L"rb+")) {
43
bool result = _chsize(fileno(fp), size) == 0;
0 commit comments