summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/tcd.h
diff options
context:
space:
mode:
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>2016-07-25 20:46:11 +0200
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>2016-07-25 20:46:11 +0200
commitd2d35bf6c2119cd39a298f57b03bf9e17d36946b (patch)
tree0a3ba0ef31b89f7c572ab55c676b7ef0df15bcb9 /src/lib/openjp2/tcd.h
parentb8bd1b0e07cf427b80eb0dc6823efebbdd1b8e5b (diff)
Create separate type for bit-fields.
The definition of bit-fields with type OPJ_UINT32 caused complilation errors on IBM iSeries, because OPJ_UINT32 is defined as uint32_t, and uint32_t is defined as unsigned long in <stdint.h>. The definition of bit-fields with an integer type of a specific size doesn't make sense anyway.
Diffstat (limited to 'src/lib/openjp2/tcd.h')
-rw-r--r--src/lib/openjp2/tcd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/openjp2/tcd.h b/src/lib/openjp2/tcd.h
index 07f8379a..3c1940b8 100644
--- a/src/lib/openjp2/tcd.h
+++ b/src/lib/openjp2/tcd.h
@@ -70,7 +70,7 @@ typedef struct opj_tcd_pass {
OPJ_UINT32 rate;
OPJ_FLOAT64 distortiondec;
OPJ_UINT32 len;
- OPJ_UINT32 term : 1;
+ OPJ_BITFIELD term : 1;
} opj_tcd_pass_t;
/**
@@ -219,7 +219,7 @@ typedef struct opj_tcd
/** current encoded/decoded tile */
OPJ_UINT32 tcd_tileno;
/** tell if the tcd is a decoder. */
- OPJ_UINT32 m_is_decoder : 1;
+ OPJ_BITFIELD m_is_decoder : 1;
} opj_tcd_t;
/** @name Exported functions */