ref: d26c7e4f39f76fe70cc61d6dc14d05a042a9be48
parent: c5d61c78c0de785b74b86d4e5298e3cc7b9e2b68
author: Masaki Ushizaka <masaki@ghostscript.com>
date: Tue Jul 20 04:01:29 EDT 2010
Fix jbig2_image_set_pixel function prototype The declaration of jbig2_image_set_pixel was differenct between jbig2_image.h and jbig2_image.c (int value vs bool value). And prevented compiling it by MSVC comiler in C++ mode. This patch fixes it. Bug #691461.
--- a/jbig2_image.h
+++ b/jbig2_image.h
@@ -18,7 +18,7 @@
#define _JBIG2_IMAGE_H
int jbig2_image_get_pixel(Jbig2Image *image, int x, int y);
-int jbig2_image_set_pixel(Jbig2Image *image, int x, int y, int value);
+int jbig2_image_set_pixel(Jbig2Image *image, int x, int y, bool value);
/* routines for dumping the image data in various formats */
/* FIXME: should these be in the client instead? */
--- a/jbig2_image_pbm.c
+++ b/jbig2_image_pbm.c
@@ -22,6 +22,7 @@
#include <ctype.h>
#include "jbig2.h"
+#include "jbig2_priv.h"
#include "jbig2_image.h"
/* take an image structure and write it to a file in pbm format */
--- a/jbig2dec.c
+++ b/jbig2dec.c
@@ -39,6 +39,7 @@
#include "sha1.h"
#include "jbig2.h"
+#include "jbig2_priv.h"
#include "jbig2_image.h"
typedef enum {