[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:46:22 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=1e33add

The following commit has been merged in the master branch:
commit 1e33add5e4f7aa4f5ed40b16414f2ae55b31dfc1
Author: Robin Mills <robin at clanmills.com>
Date:   Fri Mar 25 09:02:56 2016 +0000

    #1034.  Corrections to r4249 to fix build-breakers
---
 samples/CMakeLists.txt | 1 +
 src/CMakeLists.txt     | 2 ++
 src/ini.cpp            | 5 ++---
 src/ini_int.hpp        | 2 +-
 src/makernote.cpp      | 6 +++---
 5 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt
index 7476ea3..211fe9b 100644
--- a/samples/CMakeLists.txt
+++ b/samples/CMakeLists.txt
@@ -20,6 +20,7 @@ SET( SAMPLES addmoddel.cpp
              exifprint.cpp
              exifvalue.cpp
              geotag.cpp
+             ini-test.cpp
              iotest.cpp
              iptceasy.cpp
              iptcprint.cpp
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ce6b91f..976abee 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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
diff --git a/src/ini.cpp b/src/ini.cpp
index 7e88c59..02090a4 100755
--- a/src/ini.cpp
+++ b/src/ini.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
diff --git a/src/ini_int.hpp b/src/ini_int.hpp
index 00f05e8..98edb2d 100755
--- a/src/ini_int.hpp
+++ b/src/ini_int.hpp
@@ -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,
diff --git a/src/makernote.cpp b/src/makernote.cpp
index e6f39c0..86e237e 100644
--- a/src/makernote.cpp
+++ b/src/makernote.cpp
@@ -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;
 		}

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list