summaryrefslogtreecommitdiff
path: root/src/linux/res.h
diff options
context:
space:
mode:
authorStephen Enders <84310577289916ceefd4132143fb36b63a5f0c71>2022-06-22 01:28:23 -0400
committerSteph Enders <smenders@gmail.com>2022-06-21 22:28:30 -0400
commita878cdc42bf41355758dabd353d521d4b12e73fc (patch)
tree312acaf0cd8724b42e692fc26945f2992467ed19 /src/linux/res.h
parent09615be926efb7302bc348aa66feccb694b23ba8 (diff)
Add windows support
Create res.h for handling resource loading Update CMakeLists.txt to ensure compilation is passed properly Fix unsupported functions (<limits>) on Windows Use to_str(path) to get path as c_str() returns wchar_t* on windows
Diffstat (limited to 'src/linux/res.h')
-rw-r--r--src/linux/res.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linux/res.h b/src/linux/res.h
index 9e3b8c5..34ded54 100644
--- a/src/linux/res.h
+++ b/src/linux/res.h
@@ -42,6 +42,10 @@ struct Res {
} typedef Res;
+inline const char* to_str(std::filesystem::path file) {
+ return file.c_str();
+}
+
inline Res get_resources() {
using namespace std::filesystem;