Moved type OPJ_BITFIELD from openjpeg.h to opj_includes.h

OPJ_BITFIELD is used only in internal headers and must not
appear in the public openjpeg.h header.
This commit is contained in:
Stephan Mühlstrasser 2016-09-07 08:41:01 +02:00
parent 6c83f1468c
commit 8750e183c6
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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"