1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Cordell Bloor <cgmb@debian.org>
Date: Fri, 7 Nov 2025 13:14:02 -0700
Subject: fix improper use of filesystem
The __cpp_lib_filesystem macro is not defined unless <filesystem> has
already been included and it is improper to add declarations to
the std namespace as they can (and do) conflict with existing
declarations.
Forwarded: no
---
clients/common/utility.cpp | 8 --------
1 file changed, 8 deletions(-)
diff --git a/clients/common/utility.cpp b/clients/common/utility.cpp
index b7df765..032c36c 100644
--- a/clients/common/utility.cpp
+++ b/clients/common/utility.cpp
@@ -34,16 +34,8 @@
#define strSUITEcmp(A, B) _stricmp(A, B)
#endif
-#ifdef __cpp_lib_filesystem
#include <filesystem>
-#else
-#include <experimental/filesystem>
-namespace std
-{
- namespace filesystem = experimental::filesystem;
-}
-#endif
#if 0
#ifdef WIN32
#include <windows.h>
|