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 /pngwrite.c | |
parent | 58eedced2578c143705c1d8503e4ed3a40aaa8b3 (diff) |
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 'pngwrite.c')
-rw-r--r-- | pngwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pngwrite.c b/pngwrite.c index 832947309..052a47c57 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -469,7 +469,7 @@ png_write_end(png_structrp png_ptr, png_inforp info_ptr) #ifdef PNG_CONVERT_tIME_SUPPORTED void PNGAPI -png_convert_from_struct_tm(png_timep ptime, PNG_CONST struct tm * ttime) +png_convert_from_struct_tm(png_timep ptime, const struct tm * ttime) { png_debug(1, "in png_convert_from_struct_tm"); @@ -2052,7 +2052,7 @@ png_image_write_main(png_voidp argument) */ if (write_16bit != 0) { - PNG_CONST png_uint_16 le = 0x0001; + const png_uint_16 le = 0x0001; if ((*(png_const_bytep) & le) != 0) png_set_swap(png_ptr); |