summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-10-25 08:09:03 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-10-25 08:09:03 +0200
commitba15991f70071676c4421b8f8379d5f4fce5e50f (patch)
tree0ba83d3cda9cfb67d57f1bc487dfcaca7f1489da /src/file_jpg.c
parent55b6af72342882f912dfe5ef767d537a7a328279 (diff)
Use "int" instead of "boolean" in src/file_jpg.c
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index c695181..5928bc7 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -39,12 +39,6 @@
#include <setjmp.h>
#endif
#ifdef HAVE_JPEGLIB_H
-#ifdef __MINGW32__
-#ifndef HAVE_BOOLEAN
-#define HAVE_BOOLEAN
-typedef int boolean;
-#endif
-#endif
#include <jpeglib.h>
#include "suspend.h"
#endif
@@ -236,7 +230,7 @@ typedef struct {
FILE * infile; /* source stream */
JOCTET * buffer; /* start of buffer */
- boolean start_of_file; /* have we gotten any data yet? */
+ int start_of_file; /* have we gotten any data yet? */
unsigned long int offset;
unsigned long int file_size;
unsigned long int file_size_max;
@@ -344,7 +338,7 @@ static void jpg_init_source (j_decompress_ptr cinfo)
* the front of the buffer rather than discarding it.
*/
-static boolean jpg_fill_input_buffer (j_decompress_ptr cinfo)
+static int jpg_fill_input_buffer (j_decompress_ptr cinfo)
{
my_source_mgr * src = (my_source_mgr *) cinfo->src;
size_t nbytes;