From cc061782d1c2ac6bf27dace680b070086596d939 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Sat, 24 Mar 2012 13:00:00 +0000 Subject: [PATCH] #812: Tweak to make the code compile with MSYS/MinGW. --- src/basicio.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/basicio.cpp b/src/basicio.cpp index 04c7d944..2d336ba2 100644 --- a/src/basicio.cpp +++ b/src/basicio.cpp @@ -61,13 +61,11 @@ EXIV2_RCSID("@(#) $Id$") # include // for getpid, stat #endif -// MSVC doesn't provide mode_t, nlink_t -#ifdef _MSC_VER +#if defined WIN32 && !defined __CYGWIN__ +// Windows doesn't provide mode_t, nlink_t typedef unsigned short mode_t; typedef short nlink_t; -#endif -#if defined WIN32 && !defined __CYGWIN__ # include # include #endif