Fix wrong ordinal(index) for 'png_read_image_with_pick_color' 10/216510/5
authorjiyong.min <jiyong.min@samsung.com>
Sun, 27 Oct 2019 23:52:01 +0000 (08:52 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Mon, 4 Nov 2019 05:13:01 +0000 (14:13 +0900)
 - 245 was already used for 'png_image_write_to_memory'
  and 'png_read_image_with_pick_color' was defined as 250
  in 'scripts/symbols.def'.

 - Just the ordinals are used to check build, not used in runtime.

Change-Id: Ice36cb4f45268e2f41e40b3b11a5406ef0ab48ba

png.h

diff --git a/png.h b/png.h
index b6d17e5..ed74ca1 100644 (file)
--- a/png.h
+++ b/png.h
@@ -3250,10 +3250,12 @@ PNG_EXPORT(244, int, png_set_option, (png_structrp png_ptr, int option,
 #endif /* SET_OPTION */
 
 /* VD_TIZEN_ONLY */
+#ifdef _PNG_COLOR_PICK_ENABLED_
 /* Read the whole image into memory at once. */
-PNG_EXPORT(245, void, png_read_image_with_pick_color, (png_structp png_ptr,
+PNG_EXPORT(250, void, png_read_image_with_pick_color, (png_structp png_ptr,
    png_bytepp image,
    PngPickColor *pickcolor));
+#endif
 /* VD_TIZEN_ONLY_END */
 
 /*******************************************************************************