From 2409f728610817718d3d7d7abc47fb2d6b72af3c Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 2 Mar 2005 08:55:33 +0000 Subject: [PATCH] Modify for C++. --- chise.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/chise.h b/chise.h index 6b903d1..696620b 100644 --- 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 @@ -19,6 +19,10 @@ #ifndef _CHISE_H #define _CHISE_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -61,13 +65,13 @@ chise_value_size (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) { - 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); +#ifdef __cplusplus +} +#endif + #endif /* !_CHISE_H */ -- 1.7.10.4