From a89d38346af883d4e8593c28f2957fc9abc5fc4a Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 22 Jun 2024 00:11:56 +0000 Subject: [PATCH] add mingw version info git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@416 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Library/dataworks.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/dataworks.c b/Library/dataworks.c index 42a6b71..6258ae0 100644 --- a/Library/dataworks.c +++ b/Library/dataworks.c @@ -108,7 +108,13 @@ char* dataworks_get_compiler(void) { #elif defined(__VBCC__) sprintf(ver, "VBCC"); #elif defined(__GNUC__) - sprintf(ver, "GCC %s", __VERSION__); + sprintf(ver, "%sGCC %s", +#if defined(__MINGW32__) + "MinGW32-", +#else + "", +#endif + __VERSION__); #else sprintf(ver, "Unsupported compiler"); #endif -- 2.43.0