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/thr.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libobjc/objc/thr.h') diff --git a/libobjc/objc/thr.h b/libobjc/objc/thr.h index 1178f2e..b4472fe 100644 --- a/libobjc/objc/thr.h +++ b/libobjc/objc/thr.h @@ -40,6 +40,10 @@ Boston, MA 02111-1307, USA. */ #include "objc/objc.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /************************************************************************* * Universal static variables: */ @@ -142,4 +146,9 @@ objc_thread_t __objc_thread_id (void); int __objc_thread_set_data (void *value); void * __objc_thread_get_data (void); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + #endif /* not __thread_INCLUDE_GNU */ -- cgit v1.1