blob: ca035f5b4856243e42d4b7c48adef8a418b06d39 (
plain) (
blame)
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
|
--- lib/libimhex/source/helpers/fs.cpp.orig 2023-02-12 18:24:04 UTC
+++ lib/libimhex/source/helpers/fs.cpp
@@ -15,10 +15,15 @@
#include <shlobj.h>
#elif defined(OS_LINUX)
#include <xdg.hpp>
+# if defined(__FreeBSD__)
+ #include <sys/syslimits.h>
+# else
#include <linux/limits.h>
+# endif
#endif
#include <algorithm>
+#include <array>
#include <filesystem>
namespace hex::fs {
@@ -101,7 +106,7 @@ namespace hex::fs {
result = NFD::PickFolder(outPath, defaultPath.empty() ? nullptr : defaultPath.c_str());
break;
default:
- std::unreachable();
+ pl::hlp::unreachable();
}
if (result == NFD_OKAY){
|