Modify for C++.
authortomo <tomo>
Wed, 2 Mar 2005 08:55:33 +0000 (08:55 +0000)
committertomo <tomo>
Wed, 2 Mar 2005 08:55:33 +0000 (08:55 +0000)
chise.h

diff --git a/chise.h b/chise.h
index 6b903d1..696620b 100644 (file)
--- a/chise.h
+++ b/chise.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 MORIOKA Tomohiko
+/* Copyright (C) 2003,2004,2005 MORIOKA Tomohiko
    This file is part of the CHISE Library.
 
    The CHISE Library is free software; you can redistribute it and/or
    This file is part of the CHISE Library.
 
    The CHISE Library is free software; you can redistribute it and/or
 #ifndef _CHISE_H
 #define _CHISE_H
 
 #ifndef _CHISE_H
 #define _CHISE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <db.h>
 #include <errno.h>
 
 #include <db.h>
 #include <errno.h>
 
@@ -61,13 +65,13 @@ chise_value_size (const CHISE_Value *s)
 static inline char *
 chise_value_data (const CHISE_Value *s)
 {
 static inline char *
 chise_value_data (const CHISE_Value *s)
 {
-  return s->data;
+  return (char *)s->data;
 }
 
 static inline char *
 chise_value_to_c_string (const CHISE_Value *s)
 {
 }
 
 static inline char *
 chise_value_to_c_string (const CHISE_Value *s)
 {
-  return s->data;
+  return (char *)s->data;
 }
 
 
 }
 
 
@@ -177,4 +181,8 @@ chise_feature_gets_property_value (CHISE_Feature feature,
                                   CHISE_Property_Table *table,
                                   unsigned char *buf, size_t size);
 
                                   CHISE_Property_Table *table,
                                   unsigned char *buf, size_t size);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* !_CHISE_H */
 #endif /* !_CHISE_H */