From 8560a65f213d54a68f3214fdaf403827a07e065c Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Mon, 15 Jul 2019 09:43:04 +0100 Subject: [PATCH] Add a missing `extern "C"` to slot.h. Fixes #117 --- objc/slot.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/objc/slot.h b/objc/slot.h index 68ed478..8ee0ce5 100644 --- a/objc/slot.h +++ b/objc/slot.h @@ -4,6 +4,11 @@ #ifndef __OBJC_SLOT_H_INCLUDED__ #define __OBJC_SLOT_H_INCLUDED__ + +#ifdef __cplusplus +extern "C" { +#endif + /** * The objc_slot structure is used to permit safe IMP caching. It is returned * by the new lookup APIs. When you call `objc_slot_lookup_version`, the final @@ -50,4 +55,7 @@ struct objc_slot /** Selector for this method. */ SEL selector; } OBJC_NONPORTABLE; +#ifdef __cplusplus +} +#endif #endif // __OBJC_SLOT_H_INCLUDED__