make usable from C++

--HG--
branch : HEAD
diff --git a/ChangeLog b/ChangeLog
index fa3e18e..3b1e286 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-07-14  Dieter Baron  <dillo@danbala.tuwien.ac.at>
+
+	* lib/zip.h: make usable from C++.
+
 2005-07-05  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
 
 	* libzip.pc.in (zipcmp): Fix path to zipcmp.
diff --git a/lib/zip.h b/lib/zip.h
index b7950e1..5e046b1 100644
--- a/lib/zip.h
+++ b/lib/zip.h
@@ -2,7 +2,7 @@
 #define _HAD_ZIP_H
 
 /*
-  $NiH: zip.h,v 1.48 2005/01/20 21:00:29 dillo Exp $
+  $NiH: zip.h,v 1.49 2005/06/09 19:57:09 dillo Exp $
 
   zip.h -- exported declarations.
   Copyright (C) 1999, 2003, 2004, 2005 Dieter Baron and Thomas Klausner
@@ -38,6 +38,10 @@
 
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <sys/types.h>
 #include <stdio.h>
 #include <time.h>
@@ -167,4 +171,8 @@
 int zip_unchange(struct zip *, int);
 int zip_unchange_all(struct zip *);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _HAD_ZIP_H */