X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=chise.h;h=696620b93ffc8a5c9d110db64d1ae2e063d1203b;hb=098d0bdeccaba4c09452979eaf193e88a5ce5a09;hp=6b903d1f977020f4096276eb97596f5fb6c3152b;hpb=2ad96053e587c488f826ba65e0e599942314fa7b;p=chise%2Flibchise.git 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 */