aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-05-23 16:09:09 +0000
committerBill Meier <wmeier@newsguy.com>2011-05-23 16:09:09 +0000
commit00ac593f910164b8cf894f4015bde1edae2a7d43 (patch)
treed3effe0876d2beb6911b40830d032e29f408443a /version_info.c
parent9a661e496729c6a48a2f5da8d57ee3106757695e (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.c32
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 */