Add compiler information.

svn path=/trunk/; revision=19584
This commit is contained in:
Gerald Combs 2006-10-17 22:43:40 +00:00
parent c57d78db9c
commit 9898be2f65
1 changed files with 11 additions and 0 deletions

View File

@ -454,6 +454,17 @@ get_runtime_version_info(GString *str)
g_string_append(str, ".");
/* Compiler info */
#if defined(__GNUC__) && defined(__VERSION__)
g_string_sprintfa(str, "\nBuilt using gcc %s.\n", __VERSION__);
#elif defined (_MSC_FULL_VER)
/* Documented at http://predef.sourceforge.net/precomp.html */
/* This should probably be prettified somehow */
g_string_sprintfa(str, "\nBuilt using Microsoft Visual C++ %d\n",
_MSC_FULL_VER);
#endif
end_string(str);
}