diff options
author | daan <daanl@outlook.com> | 2020-01-23 10:31:47 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2020-01-23 10:31:47 -0800 |
commit | 6fb434a99b72838f53f75899076e3cd949b9fb57 (patch) | |
tree | 8d4d26b892ea0a874031e47f4f1556d05ac2debe /include/mimalloc-internal.h | |
parent | 0316859e0666bc7138e45789d71d2829656f85f3 (diff) |
use -fvisibility=hidden on clang as well
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index eaa327b..88a0f86 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -23,7 +23,7 @@ terms of the MIT license. A copy of the license can be found in the file #if defined(_MSC_VER) #pragma warning(disable:4127) // constant conditional due to MI_SECURE paths #define mi_decl_noinline __declspec(noinline) -#elif defined(__GNUC__) || defined(__clang__) +#elif (defined(__GNUC__) && (__GNUC__>=3)) // includes clang and icc #define mi_decl_noinline __attribute__((noinline)) #else #define mi_decl_noinline |