forked from freddix/libpng12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibpng-export_old.patch
49 lines (42 loc) · 2.09 KB
/
libpng-export_old.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff -aurN libpng-1.2.44.orig/png.h libpng-1.2.44/png.h
--- libpng-1.2.44.orig/png.h 2010-07-05 12:13:39.000000000 +0200
+++ libpng-1.2.44/png.h 2010-07-05 12:18:02.000000000 +0200
@@ -1879,16 +1879,16 @@
extern PNG_EXPORT(void,png_destroy_read_struct) PNGARG((png_structpp
png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr));
-/* Free all memory used by the read (old method - NOT DLL EXPORTED) */
-extern void png_read_destroy PNGARG((png_structp png_ptr, png_infop info_ptr,
- png_infop end_info_ptr)) PNG_DEPRECATED;
+/* Free all memory used by the read */
+extern PNG_EXPORT(void,png_read_destroy) PNGARG((png_structp png_ptr,
+ png_infop info_ptr, png_infop end_info_ptr)); PNG_DEPRECATED;
/* Free any memory associated with the png_struct and the png_info_structs */
extern PNG_EXPORT(void,png_destroy_write_struct)
PNGARG((png_structpp png_ptr_ptr, png_infopp info_ptr_ptr));
-/* Free any memory used in png_ptr struct (old method - NOT DLL EXPORTED) */
-extern void png_write_destroy PNGARG((png_structp png_ptr)) PNG_DEPRECATED;
+/* Free any memory used in png_ptr struct */
+extern PNG_EXPORT(void,png_write_destroy) PNGARG((png_structp png_ptr)); PNG_DEPRECATED;
/* Set the libpng method of handling chunk CRC errors */
extern PNG_EXPORT(void,png_set_crc_action) PNGARG((png_structp png_ptr,
diff -aurN libpng-1.2.44.orig/pngread.c libpng-1.2.44/pngread.c
--- libpng-1.2.44.orig/pngread.c 2010-07-05 12:13:39.000000000 +0200
+++ libpng-1.2.44/pngread.c 2010-07-05 12:19:18.000000000 +0200
@@ -1195,7 +1195,7 @@
}
/* Free all memory used by the read (old method) */
-void /* PRIVATE */
+void PNGAPI
png_read_destroy(png_structp png_ptr, png_infop info_ptr,
png_infop end_info_ptr)
{
diff -aurN libpng-1.2.44.orig/pngwrite.c libpng-1.2.44/pngwrite.c
--- libpng-1.2.44.orig/pngwrite.c 2010-07-05 12:13:39.000000000 +0200
+++ libpng-1.2.44/pngwrite.c 2010-07-05 12:18:59.000000000 +0200
@@ -1107,7 +1107,7 @@
/* Free any memory used in png_ptr struct (old method) */
-void /* PRIVATE */
+void PNGAPI
png_write_destroy(png_structp png_ptr)
{
#ifdef PNG_SETJMP_SUPPORTED