summaryrefslogtreecommitdiff
path: root/indra/llimagej2coj
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-07-12 15:20:01 +0800
committerErik Kundiman <erik@megapahit.org>2023-07-19 11:04:43 +0800
commit5dddf739f6eae3de351eeb7e5a83ddcc68b31b54 (patch)
tree71295165cdb7b3827e42d6e1551b149afcf4a753 /indra/llimagej2coj
parent4f817c0543ed20e4655198e0a05a8019fa795ee7 (diff)
System OpenJPEG headers are encapsulated
For now the directory name is hardcoded since v2.5.0 is the latest and the viewer code already depends on a certain function from that version. So for now it's safe to assume that the directory name's suffix is 2.5.
Diffstat (limited to 'indra/llimagej2coj')
-rw-r--r--indra/llimagej2coj/llimagej2coj.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llimagej2coj/llimagej2coj.cpp b/indra/llimagej2coj/llimagej2coj.cpp
index 12985c3c7f..a15164858a 100644
--- a/indra/llimagej2coj/llimagej2coj.cpp
+++ b/indra/llimagej2coj/llimagej2coj.cpp
@@ -28,9 +28,15 @@
#include "llimagej2coj.h"
// this is defined so that we get static linking.
+#ifdef LL_USESYSTEMLIBS
+#include <openjpeg-2.5/openjpeg.h>
+#include <openjpeg-2.5/event.h>
+#include <openjpeg-2.5/cio.h>
+#else
#include "openjpeg.h"
#include "event.h"
#include "cio.h"
+#endif
#define MAX_ENCODED_DISCARD_LEVELS 5