mldonkey-commits
[Top][All Lists]
Advanced

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

[Mldonkey-commits] Changes to mldonkey/src/utils/cdk/zlibstubs.c


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/utils/cdk/zlibstubs.c
Date: Mon, 01 Aug 2005 16:09:22 -0400

Index: mldonkey/src/utils/cdk/zlibstubs.c
diff -u mldonkey/src/utils/cdk/zlibstubs.c:1.2 
mldonkey/src/utils/cdk/zlibstubs.c:1.3
--- mldonkey/src/utils/cdk/zlibstubs.c:1.2      Sat Jul 23 14:19:48 2005
+++ mldonkey/src/utils/cdk/zlibstubs.c  Mon Aug  1 20:09:13 2005
@@ -10,7 +10,7 @@
 /*                                                                     */
 /***********************************************************************/
 
-/* $Id: zlibstubs.c,v 1.2 2005/07/23 14:19:48 spiralvoice Exp $ */
+/* $Id: zlibstubs.c,v 1.3 2005/08/01 20:09:13 spiralvoice Exp $ */
 
 /* Stub code to interface with Zlib */
 
@@ -363,4 +363,28 @@
   failwith("Bzip2 compression not supported");
 #endif
   return Val_unit;
+}
+
+int camlzip_zlibversion(void)
+{
+  CAMLparam0 ();
+  CAMLlocal1 (v);
+#ifdef HAVE_ZLIBVERSION
+  v = copy_string (zlibVersion());
+  CAMLreturn (v);
+#else
+  failwith("zlibVersion not found");
+#endif
+}
+
+int camlzip_bzlibversion(void)
+{
+  CAMLparam0 ();
+  CAMLlocal1 (v);
+#ifdef HAVE_BZLIBVERSION
+  v = copy_string (BZ2_bzlibVersion());
+  CAMLreturn (v);
+#else
+  failwith("bzlibVersion not found");
+#endif
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]