diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-05-23 16:09:09 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-05-23 16:09:09 +0000 |
commit | 00ac593f910164b8cf894f4015bde1edae2a7d43 (patch) | |
tree | d3effe0876d2beb6911b40830d032e29f408443a /version_info.c | |
parent | 9a661e496729c6a48a2f5da8d57ee3106757695e (diff) |
(Trivial) Testing _MSC_FULL_VER can be done at compile time.
svn path=/trunk/; revision=37366
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/version_info.c b/version_info.c index 1ebe551eca..8435bb019d 100644 --- a/version_info.c +++ b/version_info.c @@ -543,21 +543,23 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *)) #endif /* __INTEL_COMPILER_BUILD_DATE */ g_string_append_printf(str, "\n"); #elif defined(_MSC_FULL_VER) - if (_MSC_FULL_VER > 99999999) { - g_string_append_printf(str, "\n\nBuilt using Microsoft Visual C++ %d.%d", - (_MSC_FULL_VER / 10000000) - 6, - (_MSC_FULL_VER / 100000) % 100); - if ((_MSC_FULL_VER % 100000) != 0) - g_string_append_printf(str, " build %d", - _MSC_FULL_VER % 100000); - } else { - g_string_append_printf(str, "\n\nBuilt using Microsoft Visual C++ %d.%d", - (_MSC_FULL_VER / 1000000) - 6, - (_MSC_FULL_VER / 10000) % 100); - if ((_MSC_FULL_VER % 10000) != 0) - g_string_append_printf(str, " build %d", - _MSC_FULL_VER % 10000); - } +# if _MSC_FULL_VER > 99999999 + g_string_append_printf(str, "\n\nBuilt using Microsoft Visual C++ %d.%d", + (_MSC_FULL_VER / 10000000) - 6, + (_MSC_FULL_VER / 100000) % 100); +# if (_MSC_FULL_VER % 100000) != 0 + g_string_append_printf(str, " build %d", + _MSC_FULL_VER % 100000); +# endif +# else + g_string_append_printf(str, "\n\nBuilt using Microsoft Visual C++ %d.%d", + (_MSC_FULL_VER / 1000000) - 6, + (_MSC_FULL_VER / 10000) % 100); +# if (_MSC_FULL_VER % 10000) != 0 + g_string_append_printf(str, " build %d", + _MSC_FULL_VER % 10000); +# endif +# endif g_string_append_printf(str, "\n"); #elif defined(_MSC_VER) /* _MSC_FULL_VER not defined, but _MSC_VER defined */ |