From 20562c4dbb497ca560c158b00050ee6a733d4943 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 8 Dec 2010 07:01:24 +0000 Subject: [PATCH] - updated to display MINGW client platform --- source/glest_game/facilities/game_util.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/source/glest_game/facilities/game_util.cpp b/source/glest_game/facilities/game_util.cpp index 6fe42d16..3e810e50 100644 --- a/source/glest_game/facilities/game_util.cpp +++ b/source/glest_game/facilities/game_util.cpp @@ -37,12 +37,20 @@ string getPlatformNameString() { string platform = ""; #if defined(WIN32) platform = "Windows"; + #if defined(__MINGW32__) + platform = "W-MINGW"; + #endif + #elif defined(__FreeBSD__) platform = "FreeBSD"; #elif defined(__APPLE__) platform = "MacOSX"; #elif defined(__GNUC__) platform = "GNU"; + #if defined(__MINGW32__) + platform = "L-MINGW"; + #endif + #else platform = "???"; #endif @@ -74,7 +82,13 @@ string getCompilerNameString() { + __GNUC_MINOR__ * 100) # endif #endif - version = "GNUC: " + intToStr(__GNUC_VERSION__); + version = "GNUC"; + + #if defined(__MINGW32__) + version += "-MINGW"; + #endif + + version += ": " + intToStr(__GNUC_VERSION__); #else version = "???";