[cairo-commit] cairo/src cairo-png.c,1.3,1.4
Carl Worth
commit at pdx.freedesktop.org
Thu Apr 7 12:33:09 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv16191/src
Modified Files:
cairo-png.c
Log Message:
* src/cairo-png.c (PNG_SIG_SIZE): Use a preprocessor macro to get
a literal value in the array size declaration, (for better
portability to lame compilers that can't deal with a const int
variable for the array size). Reported by Oleg Smolsky.
Index: cairo-png.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-png.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cairo-png.c 4 Apr 2005 16:47:12 -0000 1.3
+++ cairo-png.c 7 Apr 2005 19:33:07 -0000 1.4
@@ -231,7 +231,7 @@
cairo_surface_t *surface;
png_byte *data;
int i;
- static const int PNG_SIG_SIZE = 8;
+#define PNG_SIG_SIZE = 8;
unsigned char png_sig[PNG_SIG_SIZE];
int sig_bytes;
png_struct *png;
More information about the cairo-commit
mailing list