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

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:47:01 UTC 2017


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

The following commit has been merged in the master branch:
commit c78a76c45ce006bf0eb5dd69480d8f0ae75efd71
Author: Robin Mills <robin at clanmills.com>
Date:   Thu Sep 22 22:46:44 2016 +0000

    #1109 MinGW/32.  Correction to r4538 for all versions of msvc.
---
 src/actions.cpp | 11 +++++------
 src/basicio.cpp |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/actions.cpp b/src/actions.cpp
index 0e74e5c..3684313 100644
--- a/src/actions.cpp
+++ b/src/actions.cpp
@@ -70,6 +70,11 @@ EXIV2_RCSID("@(#) $Id$")
 # include <utime.h>
 #endif
 
+#if !defined(__MINGW__) && !defined(_MSC_VER)
+#define _fileno(a)
+#define _setmod(a,b)
+#endif
+
 // *****************************************************************************
 // local declarations
 namespace {
@@ -247,9 +252,7 @@ namespace Action {
         	     option = option == Exiv2::kpsNone ? Exiv2::kpsXMP        : option;  // drop
             case Params::pmIccProfile:{
 			     option = option == Exiv2::kpsNone ? Exiv2::kpsIccProfile : option;
-#ifdef __MINGW__
                  _setmode(_fileno(stdout),O_BINARY);
-#endif
         	     rc = printStructure(std::cout,option);
             } break;
         }
@@ -1069,11 +1072,9 @@ namespace Action {
         path_ = path;
         int  rc = 0;
 
-#ifdef __MINGW__
         if ( Params::instance().target_ & Params::ctStdInOut ) {
             _setmode(_fileno(stdout),O_BINARY);
 	    }
-#endif
 
         if (!rc && Params::instance().target_ & Params::ctThumb) {
             rc = writeThumbnail();
@@ -1265,11 +1266,9 @@ namespace Action {
             return -1;
         }
 
-#ifdef __MINGW__
         if ( Params::instance().target_ & Params::ctStdInOut ) {
             _setmode(_fileno(stdin),O_BINARY);
 	    }
-#endif
 
         int rc = 0;
         Timestamp ts;
diff --git a/src/basicio.cpp b/src/basicio.cpp
index 06371e9..dbefcf3 100644
--- a/src/basicio.cpp
+++ b/src/basicio.cpp
@@ -1493,7 +1493,7 @@ namespace Exiv2 {
         if (prot == pStdin) {
             if (isatty(fileno(stdin)))
                 throw Error(53);
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__MINGW__)
             // convert stdin to binary
             if (_setmode(_fileno(stdin), _O_BINARY) == -1)
                 throw Error(54);

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list