summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--libopenjpeg/openjpeg.h2
-rw-r--r--libopenjpeg/opj_includes.h3
3 files changed, 3 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 9402b7de..68f07ce8 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,7 @@ August 10, 2011
! [mickael] add copyright header into new test functions.
* [mickael] fixed glibc error with broken2 and broken4 images.
* [mickael] fixed segfault with 123.j2c and bug.j2c images (thanks to Tim Mattox for his improvement).
+! [mickael] moved the definition of OPJ_ARG_NOT_USED from opj_includes.h to openjpeg.h
August 9, 2011
- [antonin] removed xcode project files (cmake and autotools are now the only supported build methods)
diff --git a/libopenjpeg/openjpeg.h b/libopenjpeg/openjpeg.h
index dfc4dc64..c46d896f 100644
--- a/libopenjpeg/openjpeg.h
+++ b/libopenjpeg/openjpeg.h
@@ -63,6 +63,8 @@ typedef int opj_bool;
#define OPJ_TRUE 1
#define OPJ_FALSE 0
+// Avoid compile-time warning because parameter is not used
+#define OPJ_ARG_NOT_USED(x) (void)(x)
/*
==========================================================
Useful constant definitions
diff --git a/libopenjpeg/opj_includes.h b/libopenjpeg/opj_includes.h
index 8da9dbdc..53a0c4a7 100644
--- a/libopenjpeg/opj_includes.h
+++ b/libopenjpeg/opj_includes.h
@@ -104,9 +104,6 @@ static INLINE long lrintf(float f){
}
#endif
-// Avoid compile-time warning because parameter is not used
-#define OPJ_ARG_NOT_USED(x) (void)(x)
-
#include "j2k_lib.h"
#include "opj_malloc.h"
#include "event.h"