fix_1211_c++11_0.27. I'll explain this in the PR.
This commit is contained in:
parent
406da658f3
commit
7bf40a2408
@ -93,6 +93,11 @@ typedef int pid_t;
|
||||
#endif
|
||||
//////////////////////////////////////
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__)
|
||||
#define __USE_W32_SOCKETS
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
|
||||
// https://softwareengineering.stackexchange.com/questions/291141/how-to-handle-design-changes-for-auto-ptr-deprecation-in-c11
|
||||
#if __cplusplus >= 201103L
|
||||
#include <memory>
|
||||
|
||||
@ -1,14 +1,12 @@
|
||||
// ***************************************************************** -*- C++ -*-
|
||||
// xmpdump.cpp
|
||||
// Sample program to dump the XMP packet of an image
|
||||
#include <exiv2/exiv2.hpp>
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "error.hpp"
|
||||
#include "image.hpp"
|
||||
|
||||
int main(int argc, char* const argv[])
|
||||
{
|
||||
Exiv2::XmpParser::initialize();
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
# include <sys/xattr.h>
|
||||
#endif
|
||||
|
||||
#if defined(__MINGW__) || (defined(WIN32) && !defined(__CYGWIN))
|
||||
#if defined(__MINGW__) || (defined(WIN32) && !defined(__CYGWIN__))
|
||||
// Windows doesn't provide nlink_t
|
||||
typedef short nlink_t;
|
||||
# include <windows.h>
|
||||
|
||||
@ -20,11 +20,6 @@
|
||||
|
||||
// included header files
|
||||
#include "config.h"
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__)
|
||||
#define __USE_W32_SOCKETS
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
|
||||
#include "datasets.hpp"
|
||||
#include "http.hpp"
|
||||
#include "futils.hpp"
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#include <exiv2/exiv2.hpp>
|
||||
#include <enforce.hpp>
|
||||
|
||||
#include "gtestwrapper.h"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include <exiv2/exiv2.hpp>
|
||||
#include "gtestwrapper.h"
|
||||
|
||||
#include <image_int.hpp>
|
||||
|
||||
using namespace Exiv2::Internal;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#include <exiv2/exiv2.hpp>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "slice.hpp"
|
||||
|
||||
@ -26,19 +26,19 @@
|
||||
// requires these to be defined without values, they are only used here to define XMP-specific
|
||||
// macros with 0 or 1 values.
|
||||
|
||||
/* 20-Oct-07, ahu: Determine the platform, set the above defines accordingly. */
|
||||
|
||||
#if !defined(_FILE_OFFSET_BITS)
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#endif
|
||||
|
||||
#if defined __CYGWIN32__ && !defined __CYGWIN__
|
||||
/* For backwards compatibility with Cygwin b19 and
|
||||
earlier, we define __CYGWIN__ here, so that
|
||||
we can rely on checking just for that macro. */
|
||||
# define __CYGWIN__ __CYGWIN32__
|
||||
#if __LP64__
|
||||
# ifdef _WIN64
|
||||
# undef _WIN64
|
||||
# endif
|
||||
# define _WIN64 1
|
||||
#endif
|
||||
#if defined WIN32 && !defined __CYGWIN__
|
||||
|
||||
#if defined WIN32
|
||||
# define WIN_ENV 1
|
||||
/* Todo: How to correctly recognize a Mac platform? */
|
||||
#elif defined macintosh || defined MACOS_CLASSIC || defined MACOS_X_UNIX || defined MACOS_X || defined MACOS || defined(__APPLE__)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user