diff options
author | Carl Worth <cworth@cworth.org> | 2005-04-07 12:35:33 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-04-07 12:35:33 +0000 |
commit | 3ea3186f165c2d73403534982094518473156989 (patch) | |
tree | a1c85397961a7d4b24b293ec8df24326adca60c1 /src/cairo-png.c | |
parent | 88a62f07df27a5e6501678e3aec1882e367901be (diff) |
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.
Diffstat (limited to 'src/cairo-png.c')
-rw-r--r-- | src/cairo-png.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-png.c b/src/cairo-png.c index d1504917..e84e8b41 100644 --- a/src/cairo-png.c +++ b/src/cairo-png.c @@ -231,7 +231,7 @@ cairo_image_surface_create_for_png (FILE *file, int *width, int *height) 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; |