From: tomo Date: Wed, 2 Mar 2005 08:55:33 +0000 (+0000) Subject: Modify for C++. X-Git-Tag: chise-core-0_22~2 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2409f728610817718d3d7d7abc47fb2d6b72af3c;p=chise%2Flibchise.git Modify for C++. --- 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 */