Skip to content

Commit a988268

Browse files
authored
Fix build break for old libraw (#1786)
1 parent 5b8bc22 commit a988268

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

INSTALL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ NEW or CHANGED dependencies since the last major release are **bold**.
3434
### Optional dependencies
3535
* **Qt >= 5.6** (Only needed if you want the `iv` viewer.)
3636
* Python >= 2.7
37+
* libRaw (0.17 or higher is recommended for full functionality)
3738

3839

3940

src/raw.imageio/rawinput.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,10 @@ RawInput::open (const std::string &name, ImageSpec &newspec,
193193

194194
// Temp spec for exif parser callback to dump into
195195
ImageSpec exifspec;
196+
#if LIBRAW_VERSION >= LIBRAW_MAKE_VERSION(0,17,0)
196197
m_processor.set_exifparser_handler ((exif_parser_callback)exif_parser_cb,
197198
&exifspec);
199+
#endif
198200

199201
// open the image
200202
m_filename = name;

0 commit comments

Comments
 (0)