summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-01-23 18:17:00 +0000
committerAntonin Descampe <antonin@gmail.com>2011-01-23 18:17:00 +0000
commit066bda52c0eb385f095212574a114122de5c16bb (patch)
tree94dba905c9ac1a5de983c8bec6e885f6db1302de
parent2514c5b55072c09babf94ec33838eb3e9988b93c (diff)
move KK definition from rs.h to rs.c to prevent duplicate symbol error when building jpwl with autotools
-rw-r--r--CHANGES5
-rw-r--r--jpwl/rs.c3
-rw-r--r--jpwl/rs.h5
3 files changed, 8 insertions, 5 deletions
diff --git a/CHANGES b/CHANGES
index 54e7628f..f83432e3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +5,10 @@ What's New for OpenJPEG
! : changed
+ : added
-January 18, 2001
+January 23, 2011
+* [antonin] move 'KK' definition from rs.h to rs.c to prevent duplicate symbol error when building jpwl with autotools.
+
+January 18, 2011
! [rdieter] cmake: SOVERSION change to 1 (from 1.4) to match auto-tools
January 17, 2011
diff --git a/jpwl/rs.c b/jpwl/rs.c
index 419f0836..d699bee5 100644
--- a/jpwl/rs.c
+++ b/jpwl/rs.c
@@ -73,6 +73,9 @@
*/
typedef int gf;
+/* KK = number of information symbols */
+static int KK;
+
/* Primitive polynomials - see Lin & Costello, Appendix A,
* and Lee & Messerschmitt, p. 453.
*/
diff --git a/jpwl/rs.h b/jpwl/rs.h
index 6d2ed59b..d3c573eb 100644
--- a/jpwl/rs.h
+++ b/jpwl/rs.h
@@ -55,11 +55,8 @@
* each error counting as two erasures.
*/
#define MM 8 /* RS code over GF(2**MM) - change to suit */
-//static int KK;
-int KK;
-/* Original code */
-/*#define KK 239*/ /* KK = number of information symbols */
+/* KK defined in rs.c */
#define NN ((1 << MM) - 1)