Skip to content

Commit 7334056

Browse files
tomaszg7TurboGit
authored andcommitted
Fix compilation without OpenEXR
Commit e38d2c8 "add more magic bytes, use only appropriate loader when magic matches" introduced surrogate loader functions for file types whose libraries are not available. It was missing a surrogate for OpenEXR resulting in compilation fail if the library was not enabled. This commit adds the missing surrogate.
1 parent d761d6a commit 7334056

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/imageio/imageio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ static dt_imageio_retval_t _unsupported_type(dt_image_t *img,
179179
#define dt_imageio_open_im _unsupported_type
180180
#endif
181181

182+
#ifndef HAVE_OPENEXR
183+
#define dt_imageio_open_exr _unsupported_type
184+
#endif
185+
182186
typedef struct {
183187
dt_filetype_t filetype;
184188
gboolean hdr;

0 commit comments

Comments
 (0)