Skip to content

Commit

Permalink
Merge pull request uclouvain#1515 from rouault/fix_1514
Browse files Browse the repository at this point in the history
openjpeg.h: make sure to include opj_config.h (fixes uclouvain#1514)
  • Loading branch information
rouault authored Feb 28, 2024
2 parents d2ba102 + f19c213 commit 61309d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/openjp2/openjpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ typedef int64_t OPJ_OFF_T; /* 64-bit file offset type */
#include <stdio.h>
typedef size_t OPJ_SIZE_T;

#include "opj_config.h"

/* Avoid compile-time warning because parameter is not used */
#define OPJ_ARG_NOT_USED(x) (void)(x)

Expand Down
5 changes: 5 additions & 0 deletions src/lib/openjp2/opj_config.h.cmake.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef OPJ_CONFIG_H_INCLUDED
#define OPJ_CONFIG_H_INCLUDED

/* create opj_config.h for CMake */

/*--------------------------------------------------------------------------*/
Expand All @@ -7,3 +10,5 @@
#define OPJ_VERSION_MAJOR @OPENJPEG_VERSION_MAJOR@
#define OPJ_VERSION_MINOR @OPENJPEG_VERSION_MINOR@
#define OPJ_VERSION_BUILD @OPENJPEG_VERSION_BUILD@

#endif

0 comments on commit 61309d7

Please sign in to comment.