Skip to content

Commit 486261d

Browse files
committed
fs: add missing <cassert> include
This is needed to prevent compilation failures once boost is removed, however is still correct to include now, and reduces the diff in #20744. <string> is extracted from the defines because it is used for Windows and non-Windows code, i.e get_filesystem_error_message().
1 parent 21f781a commit 486261d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fs.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#ifndef WIN32
88
#include <cstring>
99
#include <fcntl.h>
10-
#include <string>
1110
#include <sys/file.h>
1211
#include <sys/utsname.h>
1312
#include <unistd.h>
@@ -20,6 +19,9 @@
2019
#include <windows.h>
2120
#endif
2221

22+
#include <cassert>
23+
#include <string>
24+
2325
namespace fsbridge {
2426

2527
FILE *fopen(const fs::path& p, const char *mode)

0 commit comments

Comments
 (0)