forked from linux4sam/meta-atmel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
egt-launcher: Use std::filesystem instead of std::experimental::files…
…ystem Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
recipes-egt/apps/files/0001-launcher-Switch-to-using-std-filesystem.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From 6a9542ff552689e80aae913d12282ae21c9c5c82 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Sat, 7 Jan 2023 19:07:28 -0800 | ||
Subject: [PATCH] launcher: Switch to using std::filesystem | ||
|
||
experimental/filesystem is promoted to std::filesystem and is must have | ||
with c++17 and newer standard, some compilers e.g. libcxx with | ||
llvm/clang 15+ has already dropped experimental/filesystem and expect | ||
one to use std::filesystem | ||
|
||
Signed-off-by: Khem Raj <[email protected]> | ||
--- | ||
src/launcher.cpp | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/launcher.cpp b/src/launcher.cpp | ||
index 35afa0f..c6d583d 100644 | ||
--- a/src/launcher.cpp | ||
+++ b/src/launcher.cpp | ||
@@ -12,7 +12,7 @@ | ||
#include <cmath> | ||
#include <egt/detail/filesystem.h> | ||
#include <egt/ui> | ||
-#include <experimental/filesystem> | ||
+#include <filesystem> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <memory> | ||
@@ -121,7 +121,7 @@ private: | ||
SwipeCallback m_callback; | ||
}; | ||
|
||
-namespace filesys = std::experimental::filesystem; | ||
+namespace filesys = std::filesystem; | ||
|
||
/* | ||
* Execute a command. | ||
-- | ||
2.39.0 | ||
|