summaryrefslogtreecommitdiffstats
path: root/logic/OpSys.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/OpSys.h')
-rw-r--r--logic/OpSys.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/logic/OpSys.h b/logic/OpSys.h
new file mode 100644
index 00000000..c68c437a
--- /dev/null
+++ b/logic/OpSys.h
@@ -0,0 +1,21 @@
+#pragma once
+#include <QString>
+enum OpSys
+{
+ Os_Windows,
+ Os_Linux,
+ Os_OSX,
+ Os_Other
+};
+
+OpSys OpSys_fromString(QString);
+
+#ifdef Q_OS_WIN32
+ #define currentSystem Os_Windows
+#else
+ #ifdef Q_OS_MAC
+ #define currentSystem Os_OSX
+ #else
+ #define currentSystem Os_Linux
+ #endif
+#endif \ No newline at end of file