diff options
Diffstat (limited to 'libobjc/objc')
-rw-r--r-- | libobjc/objc/message.h | 6 | ||||
-rw-r--r-- | libobjc/objc/runtime.h | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libobjc/objc/message.h b/libobjc/objc/message.h index f0038e7..b87153e 100644 --- a/libobjc/objc/message.h +++ b/libobjc/objc/message.h @@ -26,13 +26,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #ifndef __objc_message_INCLUDE_GNU #define __objc_message_INCLUDE_GNU +#include "objc.h" +#include "objc-decls.h" + #ifdef __cplusplus extern "C" { #endif -#include "objc.h" -#include "objc-decls.h" - /* This file includes declarations of the messaging functions and types. */ diff --git a/libobjc/objc/runtime.h b/libobjc/objc/runtime.h index 0b6f3df..b37eee2 100644 --- a/libobjc/objc/runtime.h +++ b/libobjc/objc/runtime.h @@ -50,6 +50,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "objc.h" #include "objc-decls.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* An 'Ivar' represents an instance variable. It holds information about the name, type and offset of the instance variable. */ typedef struct objc_ivar *Ivar; @@ -1042,4 +1046,8 @@ void objc_layout_structure_get_info (struct objc_struct_layout *layout, unsigned int *align, const char **type); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif |