diff options
| author | Antonin Descampe <antonin@gmail.com> | 2011-05-18 11:02:27 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2011-05-18 11:02:27 +0000 |
| commit | 88f43b15fab0c75c10635c9e3d6381e5d716b8e9 (patch) | |
| tree | dd05218cd57a6d2de5bfc10db1e777f84e31d314 /libopenjpeg/cio.c | |
| parent | 0c9f6a3ac9ede04eb6faf96b7d7a9586c551a9c2 (diff) | |
defined new type "opj_bool", and new constants OPJ_FALSE and OPJ_TRUE, to avoid having to deal with "stdbool.h" (patch from Winfried)
Diffstat (limited to 'libopenjpeg/cio.c')
| -rw-r--r-- | libopenjpeg/cio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopenjpeg/cio.c b/libopenjpeg/cio.c index 2ac262a1..3b0f816f 100644 --- a/libopenjpeg/cio.c +++ b/libopenjpeg/cio.c @@ -126,13 +126,13 @@ unsigned char *cio_getbp(opj_cio_t *cio) { /* * Write a byte. */ -bool cio_byteout(opj_cio_t *cio, unsigned char v) { +opj_bool cio_byteout(opj_cio_t *cio, unsigned char v) { if (cio->bp >= cio->end) { opj_event_msg(cio->cinfo, EVT_ERROR, "write error\n"); - return false; + return OPJ_FALSE; } *cio->bp++ = v; - return true; + return OPJ_TRUE; } /* |
