#1291 Reverting change in r4763 relating to windows.h as they break the Cygwin build. Retain changes in exiv2/exiv2.hpp and exv_msvc.h
This commit is contained in:
parent
f36cccefa2
commit
559ace375b
@ -22,11 +22,9 @@
|
||||
#ifndef RW_LOCK_HPP
|
||||
#define RW_LOCK_HPP
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__)
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -72,6 +72,7 @@ EXIV2_RCSID("@(#) $Id$")
|
||||
#if defined(__MINGW__) || (defined(WIN32) && !defined(__CYGWIN))
|
||||
// Windows doesn't provide nlink_t
|
||||
typedef short nlink_t;
|
||||
# include <windows.h>
|
||||
# include <io.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -51,6 +51,10 @@ EXIV2_RCSID("@(#) $Id$")
|
||||
#endif
|
||||
#include <cstring>
|
||||
|
||||
#if defined WIN32 && !defined __CYGWIN__
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef EXV_HAVE_ICONV
|
||||
# include <iconv.h>
|
||||
# include <errno.h>
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
#include <exiv2/exiv2.hpp>
|
||||
|
||||
#include "utils.hpp"
|
||||
#include "types.hpp"
|
||||
|
||||
// + standard includes
|
||||
#include <string>
|
||||
@ -54,7 +55,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#if !defined(__CYGWIN__) && !defined(__MINGW__)
|
||||
#if defined(__CYGWIN__) || defined(__MINGW__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -57,6 +57,7 @@
|
||||
// platform specific code
|
||||
#if defined(WIN32) || defined(_MSC_VER) || defined(__MINGW__)
|
||||
#include <string.h>
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
#ifndef __MINGW__
|
||||
#define snprintf sprintf_s
|
||||
|
||||
@ -35,7 +35,9 @@ EXIV2_RCSID("@(#) $Id$")
|
||||
#include "error.hpp"
|
||||
#include "futils.hpp"
|
||||
|
||||
#ifndef WIN32
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#define BYTE char
|
||||
#define USHORT uint16_t
|
||||
#define ULONG uint32_t
|
||||
|
||||
@ -53,6 +53,7 @@ EXIV2_RCSID("@(#) $Id$")
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#else
|
||||
#include <windows.h>
|
||||
#include <shlobj.h>
|
||||
/* older SDKs not have these */
|
||||
# ifndef CSIDL_MYMUSIC
|
||||
|
||||
@ -35,6 +35,9 @@ EXIV2_RCSID("@(#) $Id$")
|
||||
#include "i18n.h" // for _exvGettext
|
||||
|
||||
// + standard includes
|
||||
#ifdef EXV_UNICODE_PATH
|
||||
# include <windows.h> // for MultiByteToWideChar etc
|
||||
#endif
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
@ -146,6 +146,7 @@ namespace Exiv2 {
|
||||
|
||||
// platform specific support for dumpLibraryInfo
|
||||
#if defined(WIN32)
|
||||
# include <windows.h>
|
||||
# include <psapi.h>
|
||||
|
||||
// tell MSVC to link psapi.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user