From edb5c16a7fd7e627071843e95817cbbe125556f4 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Tue, 22 Sep 2015 14:24:51 +0000 Subject: [PATCH] #1109 Support for Visual Studio 2003/5/8/10/12/13/15 --- src/version.cpp | 8 +++++++- website/{ => html}/Exiv2Logo.png | Bin website/{ => html}/buildServer.html | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) rename website/{ => html}/Exiv2Logo.png (100%) rename website/{ => html}/buildServer.html (97%) diff --git a/src/version.cpp b/src/version.cpp index 3d4614b6..40d7b180 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -198,8 +198,14 @@ void Exiv2::dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys) "MSVC" ; #ifndef __VERSION__ - char version[20]; + char version[40]; sprintf(version,"%d.%02d",(_MSC_VER-600)/100,_MSC_VER%100); + + // add edition in brackets + int edition = (_MSC_VER-600)/100; // 7.1 = 2003 ... 14 = 2015 + const char* editions[] = { "2003", "2005", "2008", "2010", "2012","2013","no version 13","2015"}; + if ( edition < 7 || edition > 14 ) edition = 0 ; + if ( edition ) sprintf(version+::strlen(version)," (%s)",editions[edition-7] ); #define __VERSION__ version #endif diff --git a/website/Exiv2Logo.png b/website/html/Exiv2Logo.png similarity index 100% rename from website/Exiv2Logo.png rename to website/html/Exiv2Logo.png diff --git a/website/buildServer.html b/website/html/buildServer.html similarity index 97% rename from website/buildServer.html rename to website/html/buildServer.html index aabcce5c..1f5e94ef 100644 --- a/website/buildServer.html +++ b/website/html/buildServer.html @@ -97,7 +97,7 @@ a:hover { background-color : cyan ; } if ( t('webready') ) s(['curl','libssh','openssl']); // estimate MSVC - var m = t('2003') + t('2005') + t('2008') + t('2010') + t('2012') + t('2014'); // msvc builds + var m = t('2003') + t('2005') + t('2008') + t('2010') + t('2012') + t('2013') + t('2015'); // msvc builds var M = 4; // msvc build time if ( t('curl' ) ) M += 5; if ( t('libssh' ) ) M += 1; @@ -223,7 +223,8 @@ a:hover { background-color : cyan ; }
2008
2010
2012 -
2014 +
2013 +
2015 Link: zlib