#1034. Corrections to r4249 to fix build-breakers
This commit is contained in:
parent
dbed6f857c
commit
1e33add5e4
@ -20,6 +20,7 @@ SET( SAMPLES addmoddel.cpp
|
||||
exifprint.cpp
|
||||
exifvalue.cpp
|
||||
geotag.cpp
|
||||
ini-test.cpp
|
||||
iotest.cpp
|
||||
iptceasy.cpp
|
||||
iptcprint.cpp
|
||||
|
||||
@ -17,6 +17,7 @@ SET( LIBEXIV2_PRIVATE_HDR canonmn_int.hpp
|
||||
cr2image_int.hpp
|
||||
crwimage_int.hpp
|
||||
fujimn_int.hpp
|
||||
ini_int.hpp
|
||||
makernote_int.hpp
|
||||
minoltamn_int.hpp
|
||||
nikonmn_int.hpp
|
||||
@ -102,6 +103,7 @@ SET( LIBEXIV2_SRC asfvideo.cpp
|
||||
gifimage.cpp
|
||||
http.cpp
|
||||
image.cpp
|
||||
ini.cpp
|
||||
iptc.cpp
|
||||
jp2image.cpp
|
||||
jpgimage.cpp
|
||||
|
||||
@ -5,16 +5,15 @@
|
||||
//
|
||||
// https://github.com/benhoyt/inih
|
||||
|
||||
#include "ini_int.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
#include <cstdlib>
|
||||
|
||||
#include "ini_int.hpp"
|
||||
|
||||
using std::string;
|
||||
using namespace Exiv2;
|
||||
|
||||
|
||||
/* inih -- simple .INI file parser
|
||||
|
||||
inih is released under the New BSD license (see LICENSE.txt). Go to the project
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace Exiv2 {
|
||||
|
||||
@ -31,7 +32,6 @@ https://github.com/benhoyt/inih
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* Typedef for prototype of handler function. */
|
||||
typedef int (*ini_handler)(void* user, const char* section,
|
||||
|
||||
@ -42,9 +42,11 @@ EXIV2_RCSID("@(#) $Id$")
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
// *****************************************************************************
|
||||
namespace {
|
||||
@ -85,9 +87,7 @@ namespace Exiv2 {
|
||||
Exiv2::INIReader reader(Exiv2::Internal::getExiv2ConfigPath());
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user