[vala] zlib: include zlib.h when using crc32()



commit 13157d4faa09c0cfe26883b391d8fed98f77134e
Author: Martin Olsson <martin minimum se>
Date:   Mon Jul 19 01:41:28 2010 -0700

    zlib: include zlib.h when using crc32()

 vapi/zlib.vapi |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/zlib.vapi b/vapi/zlib.vapi
index 1dd5ac6..53f10a0 100644
--- a/vapi/zlib.vapi
+++ b/vapi/zlib.vapi
@@ -141,15 +141,15 @@ namespace ZLib {
 		public int prime (int bits, int value);
 		public int get_header (out GZHeader head);
 	}
-	[CCode (lower_case_cprefix = "")]
+	[CCode (lower_case_cprefix = "", cheader_filename = "zlib.h")]
 	namespace Utility {
 		[CCode (cname = "compress2")]
 		public static int compress ([CCode (array_length = false)] uchar[] dest, ref ulong dest_length, [CCode (array_length_type = "gulong")] uchar[] source, int level = Level.DEFAULT_COMPRESSION);
 		[CCode (cname = "compressBound")]
 		public static int compress_bound (ulong sourceLen);
 		public static int uncompress ([CCode (array_length = false)] uchar[] dest, ref ulong dest_length, [CCode (array_length_type = "gulong")] uchar[] source);
-		public static ulong adler32 (ulong crc = 0, [CCode (array_length_type = "guint")] uint8[]? buf = null);
-		public static ulong crc32 (ulong crc = 0, [CCode (array_length_type = "guint")] uint8[]? buf = null);
+		public static ulong adler32 (ulong crc = 0UL, [CCode (array_length_type = "guint")] uint8[]? buf = null);
+		public static ulong crc32 (ulong crc = 0UL, [CCode (array_length_type = "guint")] uint8[]? buf = null);
 	}
 	[CCode (cname = "gz_header")]
 	public struct GZHeader {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]