#1034. Corrections to r4249 to fix build-breakers

v0.27.3
Robin Mills 9 years ago
parent dbed6f857c
commit 1e33add5e4

@ -20,6 +20,7 @@ SET( SAMPLES addmoddel.cpp
exifprint.cpp exifprint.cpp
exifvalue.cpp exifvalue.cpp
geotag.cpp geotag.cpp
ini-test.cpp
iotest.cpp iotest.cpp
iptceasy.cpp iptceasy.cpp
iptcprint.cpp iptcprint.cpp

@ -17,6 +17,7 @@ SET( LIBEXIV2_PRIVATE_HDR canonmn_int.hpp
cr2image_int.hpp cr2image_int.hpp
crwimage_int.hpp crwimage_int.hpp
fujimn_int.hpp fujimn_int.hpp
ini_int.hpp
makernote_int.hpp makernote_int.hpp
minoltamn_int.hpp minoltamn_int.hpp
nikonmn_int.hpp nikonmn_int.hpp
@ -102,6 +103,7 @@ SET( LIBEXIV2_SRC asfvideo.cpp
gifimage.cpp gifimage.cpp
http.cpp http.cpp
image.cpp image.cpp
ini.cpp
iptc.cpp iptc.cpp
jp2image.cpp jp2image.cpp
jpgimage.cpp jpgimage.cpp

@ -5,16 +5,15 @@
// //
// https://github.com/benhoyt/inih // https://github.com/benhoyt/inih
#include "ini_int.hpp"
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cstdlib> #include <cstdlib>
#include "ini_int.hpp"
using std::string; using std::string;
using namespace Exiv2; using namespace Exiv2;
/* inih -- simple .INI file parser /* inih -- simple .INI file parser
inih is released under the New BSD license (see LICENSE.txt). Go to the project inih is released under the New BSD license (see LICENSE.txt). Go to the project

@ -10,6 +10,7 @@
#include <map> #include <map>
#include <string> #include <string>
#include <stdio.h>
namespace Exiv2 { namespace Exiv2 {
@ -31,7 +32,6 @@ https://github.com/benhoyt/inih
extern "C" { extern "C" {
#endif #endif
#include <stdio.h>
/* Typedef for prototype of handler function. */ /* Typedef for prototype of handler function. */
typedef int (*ini_handler)(void* user, const char* section, typedef int (*ini_handler)(void* user, const char* section,

@ -42,9 +42,11 @@ EXIV2_RCSID("@(#) $Id$")
#include <string> #include <string>
#include <cstring> #include <cstring>
#ifndef _MSC_VER
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <pwd.h> #include <pwd.h>
#endif
// ***************************************************************************** // *****************************************************************************
namespace { namespace {
@ -85,9 +87,7 @@ namespace Exiv2 {
Exiv2::INIReader reader(Exiv2::Internal::getExiv2ConfigPath()); Exiv2::INIReader reader(Exiv2::Internal::getExiv2ConfigPath());
if (reader.ParseError() == 0) { if (reader.ParseError() == 0) {
if ( reader.Get(section,value,def) != def ) { result = reader.Get(section,value,def);
result = reader.Get(section,value,def);
}
} }
return result; return result;
} }

Loading…
Cancel
Save