diff options
author | Fabian Kosmale <[email protected]> | 2021-05-06 16:52:57 +0200 |
---|---|---|
committer | Fabian Kosmale <[email protected]> | 2021-05-07 10:59:39 +0200 |
commit | 719fa10c8219537187f2e3c63eacdf44bd76d410 (patch) | |
tree | 90e7ce2eb00a6f0619074620d90e0dd8ffd46d27 /src/3rdparty/masm/wtf/PageBlock.cpp | |
parent | 7643401f3eada139ca89f37dfa6a6860ddaf3269 (diff) |
MASM: Put pageSize into an inline namespace
Apple errorneously detects pagesize as belonging to their private API.
Avoid this by putting the functions into an inline namespace to change
their mangling.
Fixes: QTBUG-69577
Pick-to: 6.1 5.15 5.12
Change-Id: I061febdc6f961fa8a6e1d43de4154a8e26b04f27
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/3rdparty/masm/wtf/PageBlock.cpp')
-rw-r--r-- | src/3rdparty/masm/wtf/PageBlock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/3rdparty/masm/wtf/PageBlock.cpp b/src/3rdparty/masm/wtf/PageBlock.cpp index e715ed262a..bc0e8d6f2d 100644 --- a/src/3rdparty/masm/wtf/PageBlock.cpp +++ b/src/3rdparty/masm/wtf/PageBlock.cpp @@ -64,6 +64,7 @@ inline size_t systemPageSize() #endif +inline namespace hidden { size_t pageSize() { if (!s_pageSize) @@ -78,5 +79,6 @@ size_t pageMask() s_pageMask = ~(pageSize() - 1); return s_pageMask; } +} } // namespace WTF |