diff options
author | fanquake <fanquake@gmail.com> | 2021-12-24 16:24:38 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-01-26 22:08:29 +0800 |
commit | 486261dfcb5ea3ec205a632066298ffa492de466 (patch) | |
tree | 5a4a2447fc5685109561a4f6c3dac2beb7df9944 /src | |
parent | 21f781ad7921ebda9f38a6be362e23750d8cd5a6 (diff) |
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().
Diffstat (limited to 'src')
-rw-r--r-- | src/fs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs.cpp b/src/fs.cpp index 34a0348578..8fcadcb3ef 100644 --- a/src/fs.cpp +++ b/src/fs.cpp @@ -7,7 +7,6 @@ #ifndef WIN32 #include <cstring> #include <fcntl.h> -#include <string> #include <sys/file.h> #include <sys/utsname.h> #include <unistd.h> @@ -20,6 +19,9 @@ #include <windows.h> #endif +#include <cassert> +#include <string> + namespace fsbridge { FILE *fopen(const fs::path& p, const char *mode) |