Hack to prevent compiler warning about undefined EXV_USE_CURL.

This commit is contained in:
Andreas Huggel 2015-06-17 14:33:29 +00:00
parent 4974ff976f
commit 4e96e2742a
2 changed files with 9 additions and 2 deletions

View File

@ -35,6 +35,10 @@
#define EXV_XPATH_MEMIO 0
#endif
#ifndef EXV_USE_CURL
#define EXV_USE_CURL 0
#endif
// *****************************************************************************
// included header files
#include "types.hpp"
@ -47,6 +51,7 @@
#include <fcntl.h> // _O_BINARY in FileIo::FileIo
#include <ctime> // timestamp for the name of temporary file
#include <cstring> // std::memcpy
// *****************************************************************************
// namespace extensions
namespace Exiv2 {
@ -1142,7 +1147,6 @@ namespace Exiv2 {
//@}
};
#if EXV_USE_CURL == 1
/*!
@brief Provides the http, https read/write access and ftp read access for the RemoteIo.

View File

@ -13,7 +13,10 @@ namespace Exiv2 {
}
#if EXV_USE_CURL
#ifndef EXV_USE_CURL
#define EXV_USE_CURL 0
#endif
#if EXV_USE_CURL == 1
#include <curl/curl.h>
#endif