patches/exiv2-02-sunstudio.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2827 3ae8c35ff1b4
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2817
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     1
--- exiv2-0.20/xmpsdk/src/XML_Node.cpp	2010-04-13 21:10:55.000000000 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     2
+++ exiv2-0.20-patch/xmpsdk/src/XML_Node.cpp	2010-06-08 20:20:00.429614313 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     3
@@ -11,7 +11,9 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     4
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     5
 #include <map>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     6
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     7
-#include <cstdio>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     8
+#include <stdio.h>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
     9
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    10
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    11
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    12
 // ! Can't include XMP..._Impl.hpp - used by both Core and Files.
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    13
 #define XMP_LitNMatch(s,l,n)	(std::strncmp((s),(l),(n)) == 0)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    14
--- exiv2-0.20/src/basicio.cpp	2010-04-03 09:53:30.000000000 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    15
+++ exiv2-0.20-patch/src/basicio.cpp	2010-06-08 21:09:15.297848477 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    16
@@ -47,7 +47,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    17
 #include <iostream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    18
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    19
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    20
-#include <cstdio>                       // for remove, rename
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    21
+#include <stdio.h>                       // for remove, rename
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    22
 #include <cstdlib>                      // for alloc, realloc, free
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    23
 #include <sys/types.h>                  // for stat, chmod
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    24
 #include <sys/stat.h>                   // for stat, chmod
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    25
@@ -61,6 +61,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    26
 # include <unistd.h>                    // for getpid, stat
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    27
 #endif
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    28
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    29
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    30
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    31
 // MSVC doesn't provide mode_t
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    32
 #ifdef _MSC_VER
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    33
 typedef unsigned short mode_t;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    34
@@ -269,7 +271,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    35
         int rc = 0;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    36
         if (p_->pMappedArea_ != 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    37
 #if defined EXV_HAVE_MMAP && defined EXV_HAVE_MUNMAP
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    38
-            if (::munmap(p_->pMappedArea_, p_->mappedLength_) != 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    39
+            if (::munmap((char *)p_->pMappedArea_, p_->mappedLength_) != 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    40
                 rc = 1;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    41
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    42
 #elif defined WIN32 && !defined __CYGWIN__
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    43
--- exiv2-0.20/src/rcsid.hpp	2010-04-03 09:53:30.000000000 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    44
+++ exiv2-0.20-patch/src/rcsid.hpp	2010-06-08 21:38:12.149260007 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    45
@@ -55,7 +55,6 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    46
 #define EXIV2_RCSID(id) \
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    47
     namespace { \
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    48
         inline const char* getRcsId(const char*) { return id ; } \
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    49
-        const char* rcsId = getRcsId(rcsId); \
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    50
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    51
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    52
 #endif // #if !defined (EXIV2_RCSID)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    53
--- exiv2-0.20/src/bmpimage.cpp	2010-04-03 09:53:30.000000000 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    54
+++ exiv2-0.20-patch/src/bmpimage.cpp	2010-06-08 21:39:39.046251245 +0200
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    55
@@ -48,6 +48,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    56
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    57
 #include <iostream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    58
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    59
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    60
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    61
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    62
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    63
 namespace Exiv2 {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    64
--- exiv2-0.20/src/canonmn.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    65
+++ exiv2-0.20-patch/src/canonmn.cpp	Tue Jun  8 21:46:08 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    66
@@ -20,6 +20,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    67
  */
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    68
 /*
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    69
   File:      canonmn.cpp
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    70
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    71
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    72
   Version:   $Rev: 2045 $
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    73
   Author(s): Andreas Huggel (ahu) <[email protected]>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    74
              David Cannings (dc) <[email protected]>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    75
@@ -29,6 +31,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    76
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    77
 EXIV2_RCSID("@(#) $Id: canonmn.cpp 2045 2010-04-03 07:53:30Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    78
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    79
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    80
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    81
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    82
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    83
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    84
@@ -44,7 +48,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    85
 #include <algorithm>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    86
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    87
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    88
-#include <cmath>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    89
+#include <math.h>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    90
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    91
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    92
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    93
--- exiv2-0.20/src/convert.cpp	Wed Apr 14 18:17:55 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    94
+++ exiv2-0.20-patch/src/convert.cpp	Tue Jun  8 21:47:41 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    95
@@ -30,6 +30,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    96
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    97
 EXIV2_RCSID("@(#) $Id: convert.cpp 2090 2010-04-14 16:17:55Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    98
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
    99
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   100
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   101
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   102
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   103
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   104
@@ -54,6 +56,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   105
 # include <errno.h>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   106
 #endif
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   107
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   108
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   109
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   110
 // Adobe XMP Toolkit
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   111
 #ifdef EXV_HAVE_XMP_TOOLKIT
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   112
 # define TXMP_STRING_TYPE std::string
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   113
--- exiv2-0.20/src/cr2image.cpp	Mon Apr 12 12:43:24 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   114
+++ exiv2-0.20-patch/src/cr2image.cpp	Tue Jun  8 21:48:39 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   115
@@ -52,6 +52,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   116
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   117
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   118
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   119
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   120
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   121
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   122
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   123
 namespace Exiv2 {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   124
--- exiv2-0.20/src/crwimage.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   125
+++ exiv2-0.20-patch/src/crwimage.cpp	Tue Jun  8 21:49:29 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   126
@@ -29,6 +29,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   127
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   128
 EXIV2_RCSID("@(#) $Id: crwimage.cpp 2045 2010-04-03 07:53:30Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   129
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   130
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   131
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   132
 // Define DEBUG to output debug information to std::cerr, e.g, by calling make
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   133
 // like this: make DEFS=-DDEBUG crwimage.o
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   134
 //#define DEBUG
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   135
--- exiv2-0.20/src/datasets.cpp	Mon Apr 19 15:17:17 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   136
+++ exiv2-0.20-patch/src/datasets.cpp	Tue Jun  8 21:50:35 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   137
@@ -29,6 +29,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   138
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   139
 EXIV2_RCSID("@(#) $Id: datasets.cpp 2109 2010-04-19 13:17:17Z cgilles $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   140
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   141
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   142
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   143
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   144
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   145
 #include "datasets.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   146
@@ -42,6 +44,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   147
 #include <iomanip>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   148
 #include <sstream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   149
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   150
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   151
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   152
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   153
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   154
 namespace Exiv2 {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   155
--- exiv2-0.20/src/easyaccess.cpp	Sun May  9 18:00:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   156
+++ exiv2-0.20-patch/src/easyaccess.cpp	Tue Jun  8 21:51:22 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   157
@@ -33,6 +33,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   158
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   159
 #include "easyaccess.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   160
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   161
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   162
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   163
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   164
 namespace {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   165
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   166
--- exiv2-0.20/src/futils.cpp	Wed Apr 14 10:09:11 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   167
+++ exiv2-0.20-patch/src/futils.cpp	Tue Jun  8 21:52:41 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   168
@@ -51,7 +51,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   169
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   170
 #include <cerrno>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   171
 #include <sstream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   172
-#include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   173
+#include <string.h>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   174
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   175
 #if defined EXV_HAVE_STRERROR_R && !defined EXV_HAVE_DECL_STRERROR_R
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   176
 # ifdef EXV_STRERROR_R_CHAR_P
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   177
--- exiv2-0.20/src/gifimage.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   178
+++ exiv2-0.20-patch/src/gifimage.cpp	Tue Jun  8 21:53:35 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   179
@@ -48,6 +48,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   180
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   181
 #include <iostream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   182
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   183
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   184
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   185
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   186
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   187
 namespace Exiv2 {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   188
--- exiv2-0.20/src/jp2image.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   189
+++ exiv2-0.20-patch/src/jp2image.cpp	Tue Jun  8 21:54:21 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   190
@@ -53,6 +53,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   191
 #include <iostream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   192
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   193
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   194
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   195
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   196
 // JPEG-2000 box types
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   197
 const uint32_t kJp2BoxTypeJp2Header   = 0x6a703268; // 'jp2h'
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   198
 const uint32_t kJp2BoxTypeImageHeader = 0x69686472; // 'ihdr'
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   199
--- exiv2-0.20/src/jpgimage.cpp	Wed Apr 28 17:20:01 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   200
+++ exiv2-0.20-patch/src/jpgimage.cpp	Tue Jun  8 22:07:01 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   201
@@ -48,6 +48,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   202
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   203
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   204
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   205
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   206
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   207
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   208
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   209
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   210
@@ -782,7 +784,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   211
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   212
             else if (   skipApp1Exif == count
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   213
                      || skipApp1Xmp  == count
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   214
-                     || find(skipApp13Ps3.begin(), skipApp13Ps3.end(), count) != skipApp13Ps3.end()
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   215
+                     || std::find(skipApp13Ps3.begin(), skipApp13Ps3.end(), count) != skipApp13Ps3.end()
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   216
                      || skipCom      == count) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   217
                 --search;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   218
                 io_->seek(size-bufRead, BasicIo::cur);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   219
--- exiv2-0.20/src/makernote.cpp	Tue May 25 17:04:16 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   220
+++ exiv2-0.20-patch/src/makernote.cpp	Tue Jun  8 22:08:37 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   221
@@ -28,6 +28,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   222
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   223
 EXIV2_RCSID("@(#) $Id: makernote.cpp 2240 2010-05-25 15:04:16Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   224
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   225
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   226
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   227
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   228
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   229
 #ifdef _MSC_VER
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   230
@@ -46,6 +48,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   231
 #include <string>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   232
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   233
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   234
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   235
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   236
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   237
 namespace {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   238
     // Todo: Can be generalized further - get any tag as a string/long/...
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   239
--- exiv2-0.20/src/minoltamn.cpp	Sat May 29 09:56:31 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   240
+++ exiv2-0.20-patch/src/minoltamn.cpp	Tue Jun  8 22:09:49 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   241
@@ -31,6 +31,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   242
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   243
 EXIV2_RCSID("@(#) $Id: minoltamn.cpp 2247 2010-05-29 07:56:31Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   244
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   245
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   246
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   247
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   248
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   249
 #include "minoltamn.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   250
--- exiv2-0.20/src/mrwimage.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   251
+++ exiv2-0.20-patch/src/mrwimage.cpp	Tue Jun  8 22:10:34 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   252
@@ -50,6 +50,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   253
 #include <iostream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   254
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   255
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   256
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   257
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   258
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   259
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   260
 namespace Exiv2 {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   261
--- exiv2-0.20/src/nikonmn.cpp	Mon May 17 16:00:28 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   262
+++ exiv2-0.20-patch/src/nikonmn.cpp	Tue Jun  8 22:12:22 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   263
@@ -34,6 +34,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   264
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   265
 EXIV2_RCSID("@(#) $Id: nikonmn.cpp 2224 2010-05-17 14:00:28Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   266
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   267
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   268
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   269
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   270
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   271
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   272
@@ -50,7 +52,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   273
 #include <iomanip>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   274
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   275
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   276
-#include <cmath>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   277
+#include <math.h>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   278
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   279
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   280
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   281
@@ -2430,8 +2432,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   282
         std::ostringstream oss;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   283
         oss.copyfmt(os);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   284
         char sign = value.toLong() < 0 ? '-' : '+';
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   285
-        long h = long(abs(value.toLong())/60.0);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   286
-        long min = abs(value.toLong()) - h*60;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   287
+        long h = long(abs((double)value.toLong())/60.0);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   288
+        long min = abs((double)value.toLong()) - h*60;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   289
         os << std::fixed << "UTC " << sign << std::setw(2) << std::setfill('0') << h << ":" 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   290
            << std::setw(2) << std::setfill('0') << min;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   291
         os.copyfmt(oss);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   292
--- exiv2-0.20/src/olympusmn.cpp	Mon Apr 19 15:17:17 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   293
+++ exiv2-0.20-patch/src/olympusmn.cpp	Tue Jun  8 22:13:10 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   294
@@ -32,6 +32,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   295
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   296
 EXIV2_RCSID("@(#) $Id: olympusmn.cpp 2109 2010-04-19 13:17:17Z cgilles $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   297
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   298
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   299
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   300
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   301
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   302
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   303
--- exiv2-0.20/src/panasonicmn.cpp	Mon Apr 19 15:17:17 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   304
+++ exiv2-0.20-patch/src/panasonicmn.cpp	Tue Jun  8 22:14:45 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   305
@@ -30,6 +30,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   306
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   307
 EXIV2_RCSID("@(#) $Id: panasonicmn.cpp 2109 2010-04-19 13:17:17Z cgilles $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   308
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   309
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   310
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   311
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   312
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   313
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   314
--- exiv2-0.20/src/pgfimage.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   315
+++ exiv2-0.20-patch/src/pgfimage.cpp	Tue Jun  8 22:15:29 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   316
@@ -29,6 +29,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   317
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   318
 EXIV2_RCSID("@(#) $Id: pgfimage.cpp 2045 2010-04-03 07:53:30Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   319
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   320
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   321
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   322
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   323
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   324
 #define DEBUG 1
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   325
--- exiv2-0.20/src/pngimage.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   326
+++ exiv2-0.20-patch/src/pngimage.cpp	Tue Jun  8 22:19:22 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   327
@@ -56,6 +56,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   328
 #include <iostream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   329
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   330
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   331
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   332
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   333
 // Signature from front of PNG file
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   334
 const unsigned char pngSignature[8] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A };
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   335
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   336
--- exiv2-0.20/src/pngchunk.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   337
+++ exiv2-0.20-patch/src/pngchunk.cpp	Tue Jun  8 22:20:25 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   338
@@ -60,7 +60,10 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   339
 #include <iostream>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   340
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   341
 #include <cstdio>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   342
+#include <cstdlib>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   343
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   344
+using namespace std;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   345
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   346
 /*
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   347
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   348
 URLs to find informations about PNG chunks :
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   349
--- exiv2-0.20/src/preview.cpp	Wed Apr 21 16:29:37 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   350
+++ exiv2-0.20-patch/src/preview.cpp	Tue Jun  8 22:21:36 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   351
@@ -640,7 +640,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   352
                     uint32_t offset = dataValue.toLong(i);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   353
                     uint32_t size = sizes.toLong(i);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   354
                     if (offset + size <= static_cast<uint32_t>(io.size()))
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   355
-                        memcpy(pos, base + offset, size);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   356
+                        std::memcpy(pos, base + offset, size);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   357
                     pos += size;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   358
                 }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   359
                 dataValue.setDataArea(buf.pData_, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   360
@@ -678,7 +678,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   361
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   362
         properties_ = rhs.properties_;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   363
         pData_ = new byte[rhs.size_];
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   364
-        memcpy(pData_, rhs.pData_, rhs.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   365
+        std::memcpy(pData_, rhs.pData_, rhs.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   366
         size_ = rhs.size_;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   367
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   368
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   369
@@ -690,7 +690,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   370
             pData_ = new byte[rhs.size_];
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   371
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   372
         properties_ = rhs.properties_;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   373
-        memcpy(pData_, rhs.pData_, rhs.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   374
+        std::memcpy(pData_, rhs.pData_, rhs.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   375
         size_ = rhs.size_;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   376
         return *this;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   377
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   378
--- exiv2-0.20/src/properties.cpp	Sat May 29 11:09:03 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   379
+++ exiv2-0.20-patch/src/properties.cpp	Tue Jun  8 22:22:48 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   380
@@ -54,7 +54,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   381
         //! Comparison operator for key
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   382
         bool operator==(const std::string& key) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   383
         {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   384
-            return 0 == strcmp(key_, key.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   385
+            return 0 == std::strcmp(key_, key.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   386
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   387
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   388
         const char* key_;                      //!< XMP key
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   389
@@ -1126,7 +1126,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   390
         if (!pl) return 0;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   391
         const XmpPropertyInfo* pi = 0;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   392
         for (int i = 0; pl[i].name_ != 0; ++i) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   393
-            if (0 == strcmp(pl[i].name_, key.tagName().c_str())) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   394
+            if (0 == std::strcmp(pl[i].name_, key.tagName().c_str())) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   395
                 pi = pl + i;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   396
                 break;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   397
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   398
@@ -1292,7 +1292,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   399
         std::string::size_type pos1 = key.find('.');
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   400
         if (pos1 == std::string::npos) throw Error(6, key);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   401
         std::string familyName = key.substr(0, pos1);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   402
-        if (0 != strcmp(familyName.c_str(), familyName_)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   403
+        if (0 != std::strcmp(familyName.c_str(), familyName_)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   404
             throw Error(6, key);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   405
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   406
         std::string::size_type pos0 = pos1 + 1;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   407
--- exiv2-0.20/src/psdimage.cpp	Wed Apr 14 18:33:38 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   408
+++ exiv2-0.20-patch/src/psdimage.cpp	Tue Jun  8 22:23:34 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   409
@@ -663,7 +663,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   410
         {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   411
             return false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   412
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   413
-        bool matched = (memcmp(buf, PsdHeader, len) == 0);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   414
+        bool matched = (std::memcmp(buf, PsdHeader, len) == 0);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   415
         if (!advance || !matched)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   416
         {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   417
             iIo.seek(-len, BasicIo::cur);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   418
--- exiv2-0.20/src/rafimage.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   419
+++ exiv2-0.20-patch/src/rafimage.cpp	Tue Jun  8 22:24:14 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   420
@@ -155,7 +155,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   421
         if (iIo.error() || iIo.eof()) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   422
             return false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   423
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   424
-        int rc = memcmp(buf, "FUJIFILM", 8);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   425
+        int rc = std::memcmp(buf, "FUJIFILM", 8);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   426
         if (!advance || rc != 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   427
             iIo.seek(-len, BasicIo::cur);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   428
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   429
--- exiv2-0.20/src/pentaxmn.cpp	Mon May 24 06:56:56 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   430
+++ exiv2-0.20-patch/src/pentaxmn.cpp	Tue Jun  8 22:25:04 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   431
@@ -32,6 +32,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   432
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   433
 EXIV2_RCSID("@(#) $Id: pentaxmn.cpp 2227 2010-05-24 04:56:56Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   434
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   435
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   436
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   437
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   438
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   439
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   440
--- exiv2-0.20/src/tags.cpp	Tue May 25 16:53:56 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   441
+++ exiv2-0.20-patch/src/tags.cpp	Tue Jun  8 22:26:49 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   442
@@ -30,6 +30,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   443
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   444
 EXIV2_RCSID("@(#) $Id: tags.cpp 2239 2010-05-25 14:53:56Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   445
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   446
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   447
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   448
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   449
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   450
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   451
@@ -70,8 +72,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   452
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   453
     bool TagVocabulary::operator==(const std::string& key) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   454
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   455
-        if (strlen(voc_) > key.size()) return false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   456
-        return 0 == strcmp(voc_, key.c_str() + key.size() - strlen(voc_));
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   457
+        if (std::strlen(voc_) > key.size()) return false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   458
+        return 0 == std::strcmp(voc_, key.c_str() + key.size() - std::strlen(voc_));
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   459
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   460
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   461
     //! @cond IGNORE
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   462
@@ -88,7 +90,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   463
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   464
     bool IfdInfo::operator==(const Item& item) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   465
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   466
-        return 0 == strcmp(item.i_.c_str(), item_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   467
+        return 0 == std::strcmp(item.i_.c_str(), item_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   468
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   469
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   470
     // Important: IFD item must be unique!
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   471
@@ -1930,7 +1932,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   472
         const char* tn = tagName.c_str();
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   473
         if (tn == 0) return 0;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   474
         for (int idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   475
-            if (0 == strcmp(ti[idx].name_, tn)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   476
+            if (0 == std::strcmp(ti[idx].name_, tn)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   477
                 return &ti[idx];
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   478
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   479
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   480
@@ -1941,7 +1943,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   481
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   482
         bool rc = false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   483
         const IfdInfo* ii = find(ifdInfo_, ifdId);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   484
-        if (ii != 0 && 0 == strcmp(ii->name_, "Makernote")) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   485
+        if (ii != 0 && 0 == std::strcmp(ii->name_, "Makernote")) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   486
             rc = true;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   487
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   488
         return rc;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   489
@@ -2210,7 +2212,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   490
         std::string::size_type pos1 = key_.find('.');
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   491
         if (pos1 == std::string::npos) throw Error(6, key_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   492
         std::string familyName = key_.substr(0, pos1);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   493
-        if (0 != strcmp(familyName.c_str(), familyName_)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   494
+        if (0 != std::strcmp(familyName.c_str(), familyName_)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   495
             throw Error(6, key_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   496
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   497
         std::string::size_type pos0 = pos1 + 1;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   498
--- exiv2-0.20/src/tgaimage.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   499
+++ exiv2-0.20-patch/src/tgaimage.cpp	Tue Jun  8 22:27:43 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   500
@@ -175,7 +175,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   501
             return false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   502
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   503
         // some TARGA files, but not all, have a signature string at the end
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   504
-        bool matched = (memcmp(buf + 8, "TRUEVISION-XFILE", 16) == 0);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   505
+        bool matched = (std::memcmp(buf + 8, "TRUEVISION-XFILE", 16) == 0);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   506
         iIo.seek(curPos, BasicIo::beg);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   507
         return matched;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   508
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   509
--- exiv2-0.20/src/tiffcomposite.cpp	Tue May 25 16:53:56 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   510
+++ exiv2-0.20-patch/src/tiffcomposite.cpp	Tue Jun  8 22:29:58 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   511
@@ -28,6 +28,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   512
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   513
 EXIV2_RCSID("@(#) $Id: tiffcomposite.cpp 2239 2010-05-25 14:53:56Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   514
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   515
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   516
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   517
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   518
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   519
 #ifdef _MSC_VER
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   520
@@ -182,7 +184,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   521
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   522
     bool TiffGroupInfo::operator==(const std::string& groupName) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   523
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   524
-        return 0 == strcmp(name_, groupName.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   525
+        return 0 == std::strcmp(name_, groupName.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   526
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   527
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   528
     const char* tiffGroupName(uint16_t group)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   529
@@ -201,8 +203,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   530
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   531
     bool TiffMappingInfo::operator==(const TiffMappingInfo::Key& key) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   532
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   533
-        return    (   0 == strcmp("*", make_)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   534
-                   || 0 == strncmp(make_, key.m_.c_str(), strlen(make_)))
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   535
+        return    (   0 == std::strcmp("*", make_)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   536
+                   || 0 == std::strncmp(make_, key.m_.c_str(), std::strlen(make_)))
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   537
                && (Tag::all == extendedTag_ || key.e_ == extendedTag_)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   538
                && key.g_ == group_;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   539
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   540
@@ -394,7 +396,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   541
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   542
         if (rhs.isMalloced_) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   543
             pData_ = new byte[rhs.size_];
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   544
-            memcpy(pData_, rhs.pData_, rhs.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   545
+            std::memcpy(pData_, rhs.pData_, rhs.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   546
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   547
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   548
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   549
@@ -516,7 +518,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   550
         if (newSize > size_) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   551
             setData(DataBuf(newSize));
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   552
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   553
-        memset(pData_, 0x0, size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   554
+        std::memset(pData_, 0x0, size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   555
         size_ = value->copy(pData_, byteOrder);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   556
         assert(size_ == newSize);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   557
         setValue(value);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   558
@@ -749,7 +751,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   559
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   560
         if (origSize_ != size) return false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   561
         if (origData_ == pData) return true;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   562
-        memcpy(origData_, pData, origSize_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   563
+        std::memcpy(origData_, pData, origSize_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   564
         return true;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   565
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   566
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   567
@@ -1280,7 +1282,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   568
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   569
         // c) Pointer to the next IFD
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   570
         if (hasNext_) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   571
-            memset(buf, 0x0, 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   572
+            std::memset(buf, 0x0, 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   573
             if (pNext_ && sizeNext) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   574
                 l2Data(buf, offset + dataIdx, byteOrder);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   575
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   576
@@ -1357,7 +1359,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   577
                                                   imageIdx);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   578
             assert(len <= 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   579
             if (len < 4) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   580
-                memset(buf, 0x0, 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   581
+                std::memset(buf, 0x0, 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   582
                 ioWrapper.write(buf, 4 - len);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   583
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   584
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   585
@@ -2011,7 +2013,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   586
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   587
         if (curr < tobe) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   588
             Exiv2::DataBuf buf(tobe - curr);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   589
-            memset(buf.pData_, 0x0, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   590
+            std::memset(buf.pData_, 0x0, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   591
             ioWrapper.write(buf.pData_, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   592
             return tobe - curr;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   593
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   594
--- exiv2-0.20/src/tiffimage.cpp	Fri May 28 04:17:37 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   595
+++ exiv2-0.20-patch/src/tiffimage.cpp	Tue Jun  8 22:30:48 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   596
@@ -29,6 +29,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   597
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   598
 EXIV2_RCSID("@(#) $Id: tiffimage.cpp 2243 2010-05-28 02:17:37Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   599
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   600
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   601
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   602
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   603
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   604
 #ifdef _MSC_VER
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   605
--- exiv2-0.20/src/tiffvisitor.cpp	Tue May 25 16:53:56 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   606
+++ exiv2-0.20-patch/src/tiffvisitor.cpp	Tue Jun  8 22:32:12 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   607
@@ -28,6 +28,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   608
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   609
 EXIV2_RCSID("@(#) $Id: tiffvisitor.cpp 2239 2010-05-25 14:53:56Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   610
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   611
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   612
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   613
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   614
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   615
 #ifdef _MSC_VER
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   616
@@ -64,7 +66,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   617
         //! Returns true if group and index match.
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   618
         bool operator()(const Exiv2::Exifdatum& md) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   619
         {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   620
-            return idx_ == md.idx() && 0 == strcmp(md.ifdItem().c_str(), groupName_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   621
+            return idx_ == md.idx() && 0 == std::strcmp(md.ifdItem().c_str(), groupName_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   622
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   623
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   624
     private:
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   625
@@ -76,8 +78,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   626
     Exiv2::ByteOrder stringToByteOrder(const std::string& val)
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   627
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   628
         Exiv2::ByteOrder bo = Exiv2::invalidByteOrder;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   629
-        if (0 == strcmp("II", val.c_str())) bo = Exiv2::littleEndian;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   630
-        else if (0 == strcmp("MM", val.c_str())) bo = Exiv2::bigEndian;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   631
+        if (0 == std::strcmp("II", val.c_str())) bo = Exiv2::littleEndian;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   632
+        else if (0 == std::strcmp("MM", val.c_str())) bo = Exiv2::bigEndian;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   633
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   634
         return bo;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   635
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   636
@@ -587,8 +589,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   637
             if (rawIptc.size_ % 4 != 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   638
                 // Pad the last unsignedLong value with 0s
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   639
                 buf.alloc((rawIptc.size_ / 4) * 4 + 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   640
-                memset(buf.pData_, 0x0, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   641
-                memcpy(buf.pData_, rawIptc.pData_, rawIptc.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   642
+                std::memset(buf.pData_, 0x0, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   643
+                std::memcpy(buf.pData_, rawIptc.pData_, rawIptc.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   644
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   645
             else {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   646
                 buf = rawIptc; // Note: This resets rawIptc
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   647
@@ -705,9 +707,9 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   648
             std::cerr << "Copying data for tag " << pTiffEntry->tag()
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   649
                       << " to offset area.\n";
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   650
 #endif
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   651
-            memset(buf + 8, 0x0, 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   652
-            memcpy(buf + 8, pTiffEntry->pData(), pTiffEntry->size());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   653
-            memset(const_cast<byte*>(pTiffEntry->pData()), 0x0, pTiffEntry->size());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   654
+            std::memset(buf + 8, 0x0, 4);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   655
+            std::memcpy(buf + 8, pTiffEntry->pData(), pTiffEntry->size());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   656
+            std::memset(const_cast<byte*>(pTiffEntry->pData()), 0x0, pTiffEntry->size());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   657
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   658
         return 12;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   659
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   660
@@ -906,9 +908,9 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   661
                 std::cerr << "Writing data area for " << key << "\n";
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   662
 #endif
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   663
                 DataBuf buf = object->pValue()->dataArea();
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   664
-                memcpy(object->pDataArea_, buf.pData_, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   665
+                std::memcpy(object->pDataArea_, buf.pData_, buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   666
                 if (object->sizeDataArea_ - buf.size_ > 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   667
-                    memset(object->pDataArea_ + buf.size_,
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   668
+                    std::memset(object->pDataArea_ + buf.size_,
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   669
                            0x0, object->sizeDataArea_ - buf.size_);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   670
                 }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   671
             }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   672
--- exiv2-0.20/src/types.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   673
+++ exiv2-0.20-patch/src/types.cpp	Tue Jun  8 22:33:08 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   674
@@ -29,6 +29,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   675
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   676
 EXIV2_RCSID("@(#) $Id: types.cpp 2045 2010-04-03 07:53:30Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   677
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   678
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   679
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   680
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   681
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   682
 #include "types.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   683
@@ -66,7 +68,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   684
         //! Comparison operator for \em name
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   685
         bool operator==(const std::string& name) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   686
         {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   687
-            return 0 == strcmp(name_, name.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   688
+            return 0 == std::strcmp(name_, name.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   689
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   690
     }; // struct TypeInfoTable
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   691
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   692
--- exiv2-0.20/src/value.cpp	Wed Apr 14 18:17:55 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   693
+++ exiv2-0.20-patch/src/value.cpp	Tue Jun  8 22:36:20 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   694
@@ -30,6 +30,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   695
 #include "rcsid.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   696
 EXIV2_RCSID("@(#) $Id: value.cpp 2090 2010-04-14 16:17:55Z ahuggel $")
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   697
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   698
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   699
+
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   700
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   701
 // included header files
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   702
 #include "value.hpp"
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   703
@@ -47,6 +49,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   704
 #include <cstdio>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   705
 #include <cstdlib>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   706
 #include <ctype.h>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   707
+#include <cstdlib>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   708
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   709
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   710
 // class member definitions
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   711
@@ -547,15 +550,15 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   712
     const char* CommentValue::detectCharset(std::string& c) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   713
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   714
         // Interpret a BOM if there is one
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   715
-        if (0 == strncmp(c.data(), "\xef\xbb\xbf", 3)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   716
+        if (0 == std::strncmp(c.data(), "\xef\xbb\xbf", 3)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   717
             c = c.substr(3);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   718
             return "UTF-8";
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   719
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   720
-        if (0 == strncmp(c.data(), "\xff\xfe", 2)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   721
+        if (0 == std::strncmp(c.data(), "\xff\xfe", 2)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   722
             c = c.substr(2);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   723
             return "UCS-2LE";
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   724
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   725
-        if (0 == strncmp(c.data(), "\xfe\xff", 2)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   726
+        if (0 == std::strncmp(c.data(), "\xfe\xff", 2)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   727
             c = c.substr(2);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   728
             return "UCS-2BE";
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   729
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   730
@@ -928,7 +931,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   731
         // Make the buffer a 0 terminated C-string for sscanf
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   732
         char b[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   733
         std::memcpy(b, reinterpret_cast<const char*>(buf), 8);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   734
-        int scanned = sscanf(b, "%4d%2d%2d",
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   735
+        int scanned = std::sscanf(b, "%4d%2d%2d",
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   736
                              &date_.year, &date_.month, &date_.day);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   737
         if (scanned != 3) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   738
 #ifndef SUPPRESS_WARNINGS
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   739
@@ -948,7 +951,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   740
 #endif
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   741
             return 1;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   742
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   743
-        int scanned = sscanf(buf.c_str(), "%4d-%d-%d",
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   744
+        int scanned = std::sscanf(buf.c_str(), "%4d-%d-%d",
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   745
                              &date_.year, &date_.month, &date_.day);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   746
         if (scanned != 3) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   747
 #ifndef SUPPRESS_WARNINGS
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   748
@@ -971,7 +974,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   749
         // sprintf wants to add the null terminator, so use oversized buffer
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   750
         char temp[9];
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   751
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   752
-        int wrote = sprintf(temp, "%04d%02d%02d",
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   753
+        int wrote = std::sprintf(temp, "%04d%02d%02d",
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   754
                             date_.year, date_.month, date_.day);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   755
         assert(wrote == 8);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   756
         std::memcpy(buf, temp, 8);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   757
@@ -1097,7 +1100,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   758
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   759
         int rc = 1;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   760
         Time t;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   761
-        int scanned = sscanf(buf, format, &t.hour, &t.minute, &t.second);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   762
+        int scanned = std::sscanf(buf, format, &t.hour, &t.minute, &t.second);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   763
         if (   scanned  == 3
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   764
             && t.hour   >= 0 && t.hour   < 24
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   765
             && t.minute >= 0 && t.minute < 60
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   766
@@ -1113,7 +1116,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   767
         int rc = 1;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   768
         Time t;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   769
         char plusMinus;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   770
-        int scanned = sscanf(buf, format, &t.hour, &t.minute, &t.second,
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   771
+        int scanned = std::sscanf(buf, format, &t.hour, &t.minute, &t.second,
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   772
                              &plusMinus, &t.tzHour, &t.tzMinute);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   773
         if (   scanned    == 6
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   774
             && t.hour     >= 0 && t.hour     < 24
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   775
@@ -1143,10 +1146,10 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   776
         char plusMinus = '+';
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   777
         if (time_.tzHour < 0 || time_.tzMinute < 0) plusMinus = '-';
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   778
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   779
-        int wrote = sprintf(temp,
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   780
+        int wrote = std::sprintf(temp,
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   781
                    "%02d%02d%02d%1c%02d%02d",
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   782
                    time_.hour, time_.minute, time_.second,
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   783
-                   plusMinus, abs(time_.tzHour), abs(time_.tzMinute));
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   784
+                   plusMinus, std::abs(time_.tzHour), std::abs(time_.tzMinute));
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   785
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   786
         assert(wrote == 11);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   787
         std::memcpy(buf, temp, 11);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   788
@@ -1182,8 +1185,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   789
            << std::setw(2) << std::setfill('0') << time_.hour << ':'
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   790
            << std::setw(2) << std::setfill('0') << time_.minute << ':'
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   791
            << std::setw(2) << std::setfill('0') << time_.second << plusMinus
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   792
-           << std::setw(2) << std::setfill('0') << abs(time_.tzHour) << ':'
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   793
-           << std::setw(2) << std::setfill('0') << abs(time_.tzMinute);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   794
+           << std::setw(2) << std::setfill('0') << std::abs(time_.tzHour) << ':'
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   795
+           << std::setw(2) << std::setfill('0') << std::abs(time_.tzMinute);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   796
     }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   797
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   798
     long TimeValue::toLong(long /*n*/) const
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   799
--- exiv2-0.20/src/xmpsidecar.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   800
+++ exiv2-0.20-patch/src/xmpsidecar.cpp	Tue Jun  8 22:37:22 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   801
@@ -176,7 +176,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   802
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   803
         // Skip leading BOM
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   804
         int32_t start = 0;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   805
-        if (0 == strncmp(reinterpret_cast<const char*>(buf), "\xef\xbb\xbf", 3)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   806
+        if (0 == std::strncmp(reinterpret_cast<const char*>(buf), "\xef\xbb\xbf", 3)) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   807
             start = 3;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   808
         }
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   809
         bool rc = false;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   810
--- exiv2-0.20/src/exiv2.cpp	Sat Apr  3 09:53:30 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   811
+++ exiv2-0.20-patch/src/exiv2.cpp	Mon Jun 14 22:19:42 2010
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   812
@@ -52,6 +52,8 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   813
 #include <cstring>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   814
 #include <cassert>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   815
 #include <cctype>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   816
+#include <ios>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   817
+#include <locale.h>
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   818
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   819
 // *****************************************************************************
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   820
 // local declarations
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   821
@@ -839,12 +841,12 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   822
     {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   823
         std::string hstr, mstr, sstr;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   824
         char *cts = new char[ts.length() + 1];
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   825
-        strcpy(cts, ts.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   826
-        char *tmp = ::strtok(cts, ":");
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   827
+        std::strcpy(cts, ts.c_str());
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   828
+        char *tmp = std::strtok(cts, ":");
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   829
         if (tmp) hstr = tmp;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   830
-        tmp = ::strtok(0, ":");
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   831
+        tmp = std::strtok(0, ":");
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   832
         if (tmp) mstr = tmp;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   833
-        tmp = ::strtok(0, ":");
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   834
+        tmp = std::strtok(0, ":");
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   835
         if (tmp) sstr = tmp;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   836
         delete[] cts;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   837
 
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   838
@@ -897,7 +899,7 @@
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   839
                 break;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   840
             case 'p':
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   841
             {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   842
-                if (strcmp(action.c_str(), "extract") == 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   843
+                if (std::strcmp(action.c_str(), "extract") == 0) {
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   844
                     i += parsePreviewNumbers(Params::instance().previewNumbers_, optarg, i + 1);
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   845
                     target |= Params::ctPreview;
915396b1499c SFEexiv2.spec: update to 0.20, but it has problem with Sun Studio
jurikm
parents:
diff changeset
   846
                     break;
2827
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   847
--- exiv2-0.20/src/actions.cpp	Sat Apr  3 09:53:30 2010
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   848
+++ exiv2-0.20-patch/src/actions.cpp	Wed Jun 30 20:45:07 2010
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   849
@@ -29,6 +29,8 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   850
 #include "rcsid.hpp"
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   851
 EXIV2_RCSID("@(#) $Id: actions.cpp 2045 2010-04-03 07:53:30Z ahuggel $")
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   852
 
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   853
+#include <ios>
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   854
+
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   855
 // *****************************************************************************
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   856
 // included header files
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   857
 #ifdef _MSC_VER
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   858
@@ -691,7 +693,7 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   859
                 return;
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   860
             }
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   861
             bool done = false;
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   862
-            if (0 == strcmp(md.key().c_str(), "Exif.Photo.UserComment")) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   863
+            if (0 == std::strcmp(md.key().c_str(), "Exif.Photo.UserComment")) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   864
                 const Exiv2::CommentValue* pcv = dynamic_cast<const Exiv2::CommentValue*>(&md.value());
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   865
                 if (pcv) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   866
                     Exiv2::CommentValue::CharsetId csId = pcv->charsetId();
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   867
@@ -716,7 +718,7 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   868
                 return;
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   869
             }
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   870
             bool done = false;
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   871
-            if (0 == strcmp(md.key().c_str(), "Exif.Photo.UserComment")) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   872
+            if (0 == std::strcmp(md.key().c_str(), "Exif.Photo.UserComment")) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   873
                 const Exiv2::CommentValue* pcv = dynamic_cast<const Exiv2::CommentValue*>(&md.value());
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   874
                 if (pcv) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   875
                     std::cout << pcv->comment(Params::instance().charset_.c_str());
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   876
@@ -1654,7 +1656,7 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   877
         }
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   878
         Exiv2::ExifData::const_iterator md = Exiv2::isoSpeed(exifData);
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   879
         if (md != exifData.end()) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   880
-            if (strcmp(md->key().c_str(), "Exif.Photo.ISOSpeedRatings") == 0) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   881
+            if (std::strcmp(md->key().c_str(), "Exif.Photo.ISOSpeedRatings") == 0) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   882
                 if (Params::instance().verbose_) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   883
                     std::cout << _("Standard Exif ISO tag exists; not modified\n");
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   884
                 }
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   885
@@ -1941,7 +1943,7 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   886
     struct String {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   887
         const char* s_;
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   888
         bool operator==(const char* s) const {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   889
-            return 0 == strcmp(s_, s);
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   890
+            return 0 == std::strcmp(s_, s);
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   891
         }
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   892
     };
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   893
 
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   894
@@ -2027,7 +2029,7 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   895
         }
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   896
 
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   897
         // Workaround for MinGW rename which does not overwrite existing files
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   898
-        remove(newPath.c_str());
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   899
+        std::remove(newPath.c_str());
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   900
         if (std::rename(path.c_str(), newPath.c_str()) == -1) {
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   901
             std::cerr << Params::instance().progname()
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   902
                       << ": " << _("Failed to rename") << " "
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   903
--- exiv2-0.20/src/utils.cpp	Sat Apr  3 09:53:30 2010
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   904
+++ exiv2-0.20-patch/src/utils.cpp	Wed Jun 30 20:45:28 2010
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   905
@@ -38,6 +38,8 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   906
 
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   907
 #include "utils.hpp"
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   908
 
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   909
+#include <stdio.h>
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   910
+
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   911
 // + standard includes
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   912
 #include <sys/types.h>
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   913
 #include <sys/stat.h>
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   914
--- exiv2-0.20/src/metacopy.cpp	Wed Apr 14 18:32:55 2010
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   915
+++ exiv2-0.20-patch/src/metacopy.cpp	Wed Jun 30 20:45:48 2010
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   916
@@ -26,6 +26,9 @@
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   917
   Author(s): Brad Schick (brad) <[email protected]>
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   918
   History  : 13-Jul-04, brad: created
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   919
  */
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   920
+
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   921
+#include <ios>
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   922
+
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   923
 // *****************************************************************************
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   924
 // included header files
3ae8c35ff1b4 SFEexiv2.spec: fix 0.20 build
jurikm
parents: 2817
diff changeset
   925
 #include "image.hpp"