[cairo-commit] cairo/src cairo-png.c,1.4,1.5
Carl Worth
commit at pdx.freedesktop.org
Thu Apr 7 12:35:35 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv16476/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.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cairo-png.c 7 Apr 2005 19:33:07 -0000 1.4
+++ cairo-png.c 7 Apr 2005 19:35:33 -0000 1.5
@@ -231,7 +231,7 @@
cairo_surface_t *surface;
png_byte *data;
int i;
-#define 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