diff options
author | swirl <roachh@protonmail.com> | 2021-12-31 14:27:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-31 14:27:21 -0500 |
commit | 541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa (patch) | |
tree | 5a300af57c0207d38980319d54dc04218828aa1e /launcher/minecraft/OpSys.h | |
parent | 0c177b1086d69993e012ba1fbed1adf6bfe04144 (diff) | |
parent | fa98ed3ccd74cbf0228baf13851b6bb6d17d51a3 (diff) | |
download | PrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.tar.gz PrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.tar.bz2 PrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.zip |
Merge pull request #8 from dada513/upstream_update
Diffstat (limited to 'launcher/minecraft/OpSys.h')
-rw-r--r-- | launcher/minecraft/OpSys.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/launcher/minecraft/OpSys.h b/launcher/minecraft/OpSys.h index 63c750b1..0936f817 100644 --- a/launcher/minecraft/OpSys.h +++ b/launcher/minecraft/OpSys.h @@ -18,6 +18,7 @@ enum OpSys { Os_Windows, + Os_FreeBSD, Os_Linux, Os_OSX, Os_Other @@ -27,11 +28,11 @@ OpSys OpSys_fromString(QString); QString OpSys_toString(OpSys); #ifdef Q_OS_WIN32 -#define currentSystem Os_Windows + #define currentSystem Os_Windows +#elif defined Q_OS_MAC + #define currentSystem Os_OSX +#elif defined Q_OS_FREEBSD + #define currentSystem Os_FreeBSD #else -#ifdef Q_OS_MAC -#define currentSystem Os_OSX -#else -#define currentSystem Os_Linux + #define currentSystem Os_Linux #endif -#endif
\ No newline at end of file |