aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc/encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/objc/encoding.h')
-rw-r--r--libobjc/objc/encoding.h8
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 */