summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.cpp
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2024-12-04 11:13:52 -0500
committerkat <kat@vector35.com>2024-12-10 10:39:14 -0500
commit90bed479f1025263ca243f81c75e1327f1359c64 (patch)
tree7adb9bca35f7510c29559c1f92fd6880fb50f8ff /view/sharedcache/core/SharedCache.cpp
parent8024cbe3eb257c39d17e77b1f445ceb28d02b1ed (diff)
Fix a compilation error on Windows
Diffstat (limited to 'view/sharedcache/core/SharedCache.cpp')
-rw-r--r--view/sharedcache/core/SharedCache.cpp7
1 files changed, 7 insertions, 0 deletions
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)
{