fix_1211_c++11_0.27. I'll explain this in the PR.

v0.27.3
Robin Mills 5 years ago
parent 406da658f3
commit 7bf40a2408

@ -93,6 +93,11 @@ typedef int pid_t;
#endif #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 // https://softwareengineering.stackexchange.com/questions/291141/how-to-handle-design-changes-for-auto-ptr-deprecation-in-c11
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
#include <memory> #include <memory>

@ -1,14 +1,12 @@
// ***************************************************************** -*- C++ -*- // ***************************************************************** -*- C++ -*-
// xmpdump.cpp // xmpdump.cpp
// Sample program to dump the XMP packet of an image // Sample program to dump the XMP packet of an image
#include <exiv2/exiv2.hpp>
#include <cassert> #include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include "error.hpp"
#include "image.hpp"
int main(int argc, char* const argv[]) int main(int argc, char* const argv[])
{ {
Exiv2::XmpParser::initialize(); Exiv2::XmpParser::initialize();

@ -71,7 +71,7 @@
# include <sys/xattr.h> # include <sys/xattr.h>
#endif #endif
#if defined(__MINGW__) || (defined(WIN32) && !defined(__CYGWIN)) #if defined(__MINGW__) || (defined(WIN32) && !defined(__CYGWIN__))
// Windows doesn't provide nlink_t // Windows doesn't provide nlink_t
typedef short nlink_t; typedef short nlink_t;
# include <windows.h> # include <windows.h>

@ -20,11 +20,6 @@
// included header files // included header files
#include "config.h" #include "config.h"
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__)
#define __USE_W32_SOCKETS
#include <winsock2.h>
#endif
#include "datasets.hpp" #include "datasets.hpp"
#include "http.hpp" #include "http.hpp"
#include "futils.hpp" #include "futils.hpp"

@ -1,3 +1,4 @@
#include <exiv2/exiv2.hpp>
#include <enforce.hpp> #include <enforce.hpp>
#include "gtestwrapper.h" #include "gtestwrapper.h"

@ -1,5 +1,5 @@
#include <exiv2/exiv2.hpp>
#include "gtestwrapper.h" #include "gtestwrapper.h"
#include <image_int.hpp> #include <image_int.hpp>
using namespace Exiv2::Internal; using namespace Exiv2::Internal;

@ -1,3 +1,4 @@
#include <exiv2/exiv2.hpp>
#include <stdint.h> #include <stdint.h>
#include "slice.hpp" #include "slice.hpp"

@ -26,19 +26,19 @@
// requires these to be defined without values, they are only used here to define XMP-specific // requires these to be defined without values, they are only used here to define XMP-specific
// macros with 0 or 1 values. // macros with 0 or 1 values.
/* 20-Oct-07, ahu: Determine the platform, set the above defines accordingly. */
#if !defined(_FILE_OFFSET_BITS) #if !defined(_FILE_OFFSET_BITS)
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#endif #endif
#if defined __CYGWIN32__ && !defined __CYGWIN__ #if __LP64__
/* For backwards compatibility with Cygwin b19 and # ifdef _WIN64
earlier, we define __CYGWIN__ here, so that # undef _WIN64
we can rely on checking just for that macro. */
# define __CYGWIN__ __CYGWIN32__
# endif # endif
#if defined WIN32 && !defined __CYGWIN__ # define _WIN64 1
#endif
#if defined WIN32
# define WIN_ENV 1 # define WIN_ENV 1
/* Todo: How to correctly recognize a Mac platform? */ /* 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__) #elif defined macintosh || defined MACOS_CLASSIC || defined MACOS_X_UNIX || defined MACOS_X || defined MACOS || defined(__APPLE__)

Loading…
Cancel
Save