

If we want the library to be linked against C++ source, we have to tell the
compiler so, because of C++ name mangling.

This patch adds the conditional "extern C" in the header to do so, and allows
the library to be used inside C++.



---

 cur-root/libjio.h |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -puN libjio.h~header_for_c++ libjio.h
--- cur/libjio.h~header_for_c++	2004-04-30 10:42:17.000000000 -0300
+++ cur-root/libjio.h	2004-04-30 10:42:17.000000000 -0300
@@ -12,6 +12,10 @@
 #include <sys/uio.h>
 #include <pthread.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 /* logical structures */
 struct jfs {
@@ -101,5 +105,10 @@ int jfsck(char *name, struct jfsck_resul
 #define J_ENOJOURNAL	2	/* no journal associated */
 #define J_ENOMEM	3	/* no enough free memory */
 
+
+#ifdef __cplusplus
+} /* from extern "C" avobe */
+#endif
+
 #endif
 

_
