Chromium Code Reviews| Index: chrome/browser/ui/webui/version_ui.cc |
| diff --git a/chrome/browser/ui/webui/version_ui.cc b/chrome/browser/ui/webui/version_ui.cc |
| index f9c70a1e20ca55507f8a401b2a9ddd9f10498f24..59e402a64bcedbeee292323bc3ad35f6e5ba0f3d 100644 |
| --- a/chrome/browser/ui/webui/version_ui.cc |
| +++ b/chrome/browser/ui/webui/version_ui.cc |
| @@ -140,7 +140,13 @@ WebUIDataSource* CreateVersionUIDataSource() { |
| #if defined(__clang__) |
| html_source->AddString("compiler", "clang"); |
| #else |
| - html_source->AddString("compiler", "MSVC"); |
| +#if _MSC_VER == 1900 |
|
Dan Beam
2016/03/15 00:45:12
can this #else + #if be #elif and one less #endif?
Will Harris
2016/03/15 01:23:30
Done.
|
| + html_source->AddString("compiler", "MSVC 2015"); |
| +#elif _MSC_VER == 1800 |
| + html_source->AddString("compiler", "MSVC 2013"); |
| +#else |
| +#error "Unsupported version of MSVS compiler." |
| +#endif |
| #endif |
| #endif |
|
Dan Beam
2016/03/15 00:45:12
please add #endif // defined(OS_WIN) to final #en
Dan Beam
2016/03/15 00:45:12
nit: is it possible to use mingw/g++ on windows?
Will Harris
2016/03/15 01:23:30
Done.
Will Harris
2016/03/15 01:23:30
pretty sure you can't use g++ except maybe for bas
|