mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- updated to display MINGW client platform
This commit is contained in:
parent
5fb2a906f1
commit
20562c4dbb
@ -37,12 +37,20 @@ string getPlatformNameString() {
|
|||||||
string platform = "";
|
string platform = "";
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
platform = "Windows";
|
platform = "Windows";
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
platform = "W-MINGW";
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
platform = "FreeBSD";
|
platform = "FreeBSD";
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
platform = "MacOSX";
|
platform = "MacOSX";
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
platform = "GNU";
|
platform = "GNU";
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
platform = "L-MINGW";
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
platform = "???";
|
platform = "???";
|
||||||
#endif
|
#endif
|
||||||
@ -74,7 +82,13 @@ string getCompilerNameString() {
|
|||||||
+ __GNUC_MINOR__ * 100)
|
+ __GNUC_MINOR__ * 100)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
version = "GNUC: " + intToStr(__GNUC_VERSION__);
|
version = "GNUC";
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
version += "-MINGW";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
version += ": " + intToStr(__GNUC_VERSION__);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
version = "???";
|
version = "???";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user