From 6f0aa5e195d89a7e494e0362596df853762b4dac Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Fri, 25 Jun 2004 04:31:51 +0000 Subject: encoding.h: Wrap the functions with extern "C" for C++ mode. 2004-06-24 Andrew Pinski * objc/encoding.h: Wrap the functions with extern "C" for C++ mode. * objc/hash.h: Likewise. * objc/objc-api.h: Likewise. * objc/objc-list.h: Likewise. * objc/runtime.h: Likewise. * objc/sarray.h: Likewise. * objc/thr.h: Likewise. * objc/typedstream.h: Likewise. From-SVN: r83635 --- libobjc/objc/encoding.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libobjc/objc/encoding.h') diff --git a/libobjc/objc/encoding.h b/libobjc/objc/encoding.h index 684d70d..b6287fc 100644 --- a/libobjc/objc/encoding.h +++ b/libobjc/objc/encoding.h @@ -32,6 +32,10 @@ Boston, MA 02111-1307, USA. */ #include #include "objc/objc-api.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #define _C_CONST 'r' #define _C_IN 'n' #define _C_INOUT 'N' @@ -96,4 +100,8 @@ void objc_layout_structure_get_info (struct objc_struct_layout *layout, unsigned int *align, const char **type); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* __encoding_INCLUDE_GNU */ -- cgit v1.1