summaryrefslogtreecommitdiff
path: root/community/ziproxy/build-fix.patch
blob: fb23953b61e90e2e33b1cf53298e7dacf86eb570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -wbBur ziproxy-3.3.0/src/image.c ziproxy-3.3.0.q/src/image.c
--- ziproxy-3.3.0/src/image.c	2013-01-04 20:48:50.000000000 +0400
+++ ziproxy-3.3.0.q/src/image.c	2013-08-11 00:24:03.868670477 +0400
@@ -93,6 +93,10 @@
 #define MIN_INSIZE_TO_JPEG 600
 #define MIN_INSIZE_TO_JP2K 800
 
+
+#define false 0
+#define true !!0
+
 //Forwards. There are more utility functions, but they're used only once.
 static raw_bitmap *new_raw_bitmap();
 
@@ -905,7 +909,7 @@
 	desc.size=insize;
 	desc.x.pos=0;
 
-	if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input)) == NULL) 
+	if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input, NULL)) == NULL) 
     		return( IMG_RET_ERR_UNKNOWN + IMG_RET_FLG_WHILE_DECOMP);//more possible reasons
 
 	bmp = new_raw_bitmap();