aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/pch.h5
-rw-r--r--toolsrc/include/vcpkg/base/files.h5
2 files changed, 2 insertions, 8 deletions
diff --git a/toolsrc/include/pch.h b/toolsrc/include/pch.h
index fa2c2bb72..15ec25e76 100644
--- a/toolsrc/include/pch.h
+++ b/toolsrc/include/pch.h
@@ -37,11 +37,8 @@
#include <cstdarg>
#include <cstddef>
#include <cstdint>
-#if defined(_WIN32)
-#include <filesystem>
-#else
+#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
#include <experimental/filesystem>
-#endif
#include <cstring>
#include <fstream>
#include <functional>
diff --git a/toolsrc/include/vcpkg/base/files.h b/toolsrc/include/vcpkg/base/files.h
index 02e2b8db8..3ea0d6036 100644
--- a/toolsrc/include/vcpkg/base/files.h
+++ b/toolsrc/include/vcpkg/base/files.h
@@ -2,11 +2,8 @@
#include <vcpkg/base/expected.h>
-#if defined(_WIN32)
-#include <filesystem>
-#else
+#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
#include <experimental/filesystem>
-#endif
namespace fs
{