aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc/thr.h
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-06-25 04:31:51 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-24 21:31:51 -0700
commit6f0aa5e195d89a7e494e0362596df853762b4dac (patch)
tree7cd8603cd5e075e1eb7ba55ac5dd364fac92a309 /libobjc/objc/thr.h
parentfff34d356a721134207d6545fc134a412af8f885 (diff)
downloadgcc-6f0aa5e195d89a7e494e0362596df853762b4dac.zip
gcc-6f0aa5e195d89a7e494e0362596df853762b4dac.tar.gz
gcc-6f0aa5e195d89a7e494e0362596df853762b4dac.tar.bz2
encoding.h: Wrap the functions with extern "C" for C++ mode.
2004-06-24 Andrew Pinski <apinski@apple.com> * 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
Diffstat (limited to 'libobjc/objc/thr.h')
-rw-r--r--libobjc/objc/thr.h9
1 files changed, 9 insertions, 0 deletions
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 */