[trunk] Attempt to fix compilation error with mj2
This commit is contained in:
parent
9398bc1764
commit
c0259255b0
@ -45,11 +45,8 @@
|
|||||||
#include <lcms.h>
|
#include <lcms.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CLRSPC_GRAY
|
#ifdef USE_LEGACY
|
||||||
#define OPJ_CLRSPC_GRAY CLRSPC_GRAY
|
#define OPJ_CLRSPC_GRAY CLRSPC_GRAY
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CLRSPC_SRGB
|
|
||||||
#define OPJ_CLRSPC_SRGB CLRSPC_SRGB
|
#define OPJ_CLRSPC_SRGB CLRSPC_SRGB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ foreach(exe
|
|||||||
opj_mj2_decompress
|
opj_mj2_decompress
|
||||||
opj_mj2_compress
|
opj_mj2_compress
|
||||||
)
|
)
|
||||||
|
add_definitions(-DUSE_LEGACY)
|
||||||
add_executable(${exe}
|
add_executable(${exe}
|
||||||
${exe}.c
|
${exe}.c
|
||||||
${common_SRCS}
|
${common_SRCS}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user