diff options
author | Cosmin Truta <ctruta@gmail.com> | 2018-08-18 21:01:02 -0400 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2018-08-18 21:01:02 -0400 |
commit | 1ef88828146c23bfc6d81042c6d6ecd61ccc983b (patch) | |
tree | de8eafd6a8c372f3bdb70a51ed799896bdc99c30 /pngpread.c | |
parent | 58eedced2578c143705c1d8503e4ed3a40aaa8b3 (diff) | |
download | libpng-1ef88828146c23bfc6d81042c6d6ecd61ccc983b.tar.gz |
Replace the remaining uses of PNG_CONST with const
In v1.6.0, compiler support for const became a requirement.
It should be used consistently. To maintain backwards compatibility,
PNG_CONST is still maintained in deprecated form.
Diffstat (limited to 'pngpread.c')
-rw-r--r-- | pngpread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pngpread.c b/pngpread.c index fd0f0b207..e283627b7 100644 --- a/pngpread.c +++ b/pngpread.c @@ -972,20 +972,20 @@ png_read_push_finish_row(png_structrp png_ptr) /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */ /* Start of interlace block */ - static PNG_CONST png_byte png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; + static const png_byte png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; /* Offset to next interlace block */ - static PNG_CONST png_byte png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; + static const png_byte png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; /* Start of interlace block in the y direction */ - static PNG_CONST png_byte png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1}; + static const png_byte png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1}; /* Offset to next interlace block in the y direction */ - static PNG_CONST png_byte png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2}; + static const png_byte png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2}; /* Height of interlace block. This is not currently used - if you need * it, uncomment it here and in png.h - static PNG_CONST png_byte png_pass_height[] = {8, 8, 4, 4, 2, 2, 1}; + static const png_byte png_pass_height[] = {8, 8, 4, 4, 2, 2, 1}; */ #endif |