From 90bed479f1025263ca243f81c75e1327f1359c64 Mon Sep 17 00:00:00 2001 From: kat Date: Wed, 4 Dec 2024 11:13:52 -0500 Subject: Fix a compilation error on Windows --- view/sharedcache/core/SharedCache.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'view/sharedcache/core/SharedCache.cpp') diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp index f76ee1ad..9e438909 100644 --- a/view/sharedcache/core/SharedCache.cpp +++ b/view/sharedcache/core/SharedCache.cpp @@ -3475,7 +3475,14 @@ void SharedCache::Load(DeserializationContext& context) m_metadataValid = true; } +#if defined(__GNUC__) || defined(__clang__) __attribute__((always_inline)) void SharedCache::AssertMutable() const +#elif defined(_MSC_VER) +__forceinline void SharedCache::AssertMutable() const +#else +#error "Unsupported compiler" +#endif + { if (m_stateIsShared) { -- cgit v1.3.1