]> Nishi Git Mirror - dataworks.git/commitdiff
add mingw version info
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sat, 22 Jun 2024 00:11:56 +0000 (00:11 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sat, 22 Jun 2024 00:11:56 +0000 (00:11 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@416 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Library/dataworks.c

index 42a6b718b4a61afd9c54444a7ebb80fbc6618837..6258ae0f3f3ef19b9d60be8520bbcd762743022a 100644 (file)
@@ -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