Skip to content

Commit

Permalink
Moved type OPJ_BITFIELD from openjpeg.h to opj_includes.h
Browse files Browse the repository at this point in the history
OPJ_BITFIELD is used only in internal headers and must not
appear in the public openjpeg.h header.
  • Loading branch information
Stephan Mühlstrasser committed Sep 7, 2016
1 parent 6c83f14 commit 8750e18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/openjp2/openjpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ typedef uint64_t OPJ_UINT64;

typedef int64_t OPJ_OFF_T; /* 64-bit file offset type */

typedef unsigned int OPJ_BITFIELD;

#include <stdio.h>
typedef size_t OPJ_SIZE_T;

Expand Down
3 changes: 3 additions & 0 deletions src/lib/openjp2/opj_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ static INLINE long opj_lrintf(float f) {
# pragma intrinsic(__emul)
#endif

/* Type to use for bit-fields in internal headers */
typedef unsigned int OPJ_BITFIELD;

#include "opj_inttypes.h"
#include "opj_clock.h"
#include "opj_malloc.h"
Expand Down

0 comments on commit 8750e18

Please sign in to comment.