diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-10-17 22:43:40 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-10-17 22:43:40 +0000 |
commit | 9898be2f65661b2561c3132336cd7c297aa22320 (patch) | |
tree | a8f76b0731c6ec86019f696294e7b28dfd27233b /version_info.c | |
parent | c57d78db9ce708adf2cc36f78c00d5483ae8f461 (diff) |
Add compiler information.
svn path=/trunk/; revision=19584
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/version_info.c b/version_info.c index 9cf6742c4c..f0be768fef 100644 --- a/version_info.c +++ b/version_info.c @@ -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); } |