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().
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -7,7 +7,6 @@
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string>
|
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -20,6 +19,9 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace fsbridge {
|
namespace fsbridge {
|
||||||
|
|
||||||
FILE *fopen(const fs::path& p, const char *mode)
|
FILE *fopen(const fs::path& p, const char *mode)
|
||||||
|
|||||||
Reference in new issue
Block a user