File: fix-improper-use-of-filesystem.patch

package info (click to toggle)
hipsparse 6.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,812 kB
  • sloc: cpp: 106,000; f90: 7,672; sh: 563; python: 533; makefile: 39; xml: 9
file content (35 lines) | stat: -rw-r--r-- 878 bytes parent folder | download
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>