use -fvisibility=hidden on clang as well

This commit is contained in:
daan 2020-01-23 10:31:47 -08:00
parent 0316859e06
commit 6fb434a99b
3 changed files with 3 additions and 4 deletions

View file

@ -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