Skip to content

Commit

Permalink
fix(jpeg2000): include the headers we need to discern version (#4073)
Browse files Browse the repository at this point in the history
Without getting the version properly, we weren't disabling use of a
deprecated field for OpenJpeg >= 2.5, as we thought we were.

This fixes recently broken CI when building against the current openjpeg
master.

Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz authored Dec 10, 2023
1 parent 52f76f5 commit 3d8c3c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/jpeg2000.imageio/jpeg2000input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <vector>

#include <openjpeg.h>
#include <opj_config.h>

#include <OpenImageIO/filesystem.h>
#include <OpenImageIO/imagebuf.h>
Expand Down
3 changes: 2 additions & 1 deletion src/jpeg2000.imageio/jpeg2000output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

#include <vector>

#include "openjpeg.h"
#include <openjpeg.h>
#include <opj_config.h>

#include <OpenImageIO/filesystem.h>
#include <OpenImageIO/fmath.h>
Expand Down

0 comments on commit 3d8c3c4

Please sign in to comment.