diff --git a/include/exiv2/config.h b/include/exiv2/config.h index a0c81bd2..7dc3357a 100644 --- a/include/exiv2/config.h +++ b/include/exiv2/config.h @@ -6,6 +6,8 @@ ///// Start of Visual Studio Support ///// #ifdef _MSC_VER +#include + #define _MSC_VER_2015 1900 #define _MSC_VER_2013 1800 #define _MSC_VER_2012 1700 diff --git a/include/exiv2/rwlock.hpp b/include/exiv2/rwlock.hpp index 16b55cab..c67c818b 100644 --- a/include/exiv2/rwlock.hpp +++ b/include/exiv2/rwlock.hpp @@ -117,7 +117,7 @@ namespace Exiv2 { bool tryenter() { -#ifdef MSDEV_2003 +#if defined(MSDEV_2003) || defined(MSDEV_2005) EnterCriticalSection(&lock_); return true; #else diff --git a/src/ssh.cpp b/src/ssh.cpp index 0ee2112f..44658ecf 100644 --- a/src/ssh.cpp +++ b/src/ssh.cpp @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA. */ /* - File: rw2image.cpp + File: ssh.cpp Version: $Rev: 3201 $ Author(s): Andreas Huggel (ahu) History: 06-Jan-09, ahu: created @@ -29,6 +29,8 @@ #include "rcsid_int.hpp" EXIV2_RCSID("@(#) $Id: rw2image.cpp 3201 2013-12-01 12:13:42Z ahuggel $") +// included header files +#include "config.h" #include "ssh.hpp" #if EXV_USE_SSH == 1 // class member definitions