]> git.pld-linux.org Git - packages/ufraw.git/blob - exiv2-0.27.patch
- fix building with exiv2 0.27
[packages/ufraw.git] / exiv2-0.27.patch
1 --- a/ufraw_exiv2.cc    2015-06-16 05:58:38.000000000 +0200
2 +++ b/ufraw_exiv2.cc    2018-12-29 22:51:23.291894430 +0100
3 @@ -15,9 +15,7 @@
4  #include "ufraw.h"
5  
6  #ifdef HAVE_EXIV2
7 -#include <exiv2/image.hpp>
8 -#include <exiv2/easyaccess.hpp>
9 -#include <exiv2/exif.hpp>
10 +#include <exiv2/exiv2.hpp>
11  #include <sstream>
12  #include <cassert>
13  
14 @@ -67,7 +65,11 @@
15          if (exifData.empty()) {
16              std::string error(uf->filename);
17              error += ": No Exif data found in the file";
18 +#if EXIV2_TEST_VERSION(0,27,0)
19 +            throw Exiv2::Error(Exiv2::kerErrorMessage, error);
20 +#else
21              throw Exiv2::Error(1, error);
22 +#endif
23          }
24  
25          /* List of tag names taken from exiv2's printSummary() in actions.cpp */
This page took 0.192473 seconds and 3 git commands to generate.