aboutsummaryrefslogtreecommitdiff
path: root/butl/triplet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'butl/triplet.cxx')
-rw-r--r--butl/triplet.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/butl/triplet.cxx b/butl/triplet.cxx
index 3208375..8369539 100644
--- a/butl/triplet.cxx
+++ b/butl/triplet.cxx
@@ -106,13 +106,14 @@ namespace butl
// Finally, extract VERSION for some recognized systems.
//
string::size_type v (0);
- if (system.compare (0, (v = 6), "darwin") == 0 ||
- system.compare (0, (v = 7), "freebsd") == 0 ||
- system.compare (0, (v = 7), "openbsd") == 0 ||
- system.compare (0, (v = 7), "netbsd") == 0 ||
- system.compare (0, (v = 7), "solaris") == 0 ||
- system.compare (0, (v = 7), "aix") == 0 ||
- system.compare (0, (v = 7), "hpux") == 0)
+ if (system.compare (0, (v = 6), "darwin") == 0 ||
+ system.compare (0, (v = 7), "freebsd") == 0 ||
+ system.compare (0, (v = 7), "openbsd") == 0 ||
+ system.compare (0, (v = 6), "netbsd") == 0 ||
+ system.compare (0, (v = 7), "solaris") == 0 ||
+ system.compare (0, (v = 3), "aix") == 0 ||
+ system.compare (0, (v = 4), "hpux") == 0 ||
+ system.compare (0, (v = 10), "win32-msvc") == 0)
{
version.assign (system, v, string::npos);
system.resize (system.size () - version.size ());