diff options
author | Andrew Pinski <apinski@apple.com> | 2004-06-25 04:31:51 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-06-24 21:31:51 -0700 |
commit | 6f0aa5e195d89a7e494e0362596df853762b4dac (patch) | |
tree | 7cd8603cd5e075e1eb7ba55ac5dd364fac92a309 /libobjc/objc/encoding.h | |
parent | fff34d356a721134207d6545fc134a412af8f885 (diff) | |
download | gcc-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/encoding.h')
-rw-r--r-- | libobjc/objc/encoding.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <ctype.h> #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 */ |