From 70a12d36123e56b0635740b677cfe6255c8550bc Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Tue, 12 Feb 2019 09:18:13 +0000 Subject: [PATCH] Apparently PUBLIC doesn't mean what I think it means. It probably should be renamed OBJC_PUBLIC anyway, because it's a bit rude to leak an identifier like that into the global namespace. --- objc/slot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objc/slot.h b/objc/slot.h index 59afe19..dbd8ada 100644 --- a/objc/slot.h +++ b/objc/slot.h @@ -23,7 +23,7 @@ struct objc_slot2 * invalid, for example if a subclass loads a category containing methods that * were inherited from the superclass. */ -PUBLIC _Atomic(uint64_t) objc_method_cache_version; +PUBLIC extern _Atomic(uint64_t) objc_method_cache_version; /** * Legacy cache structure. This is no longer maintained in the runtime and is