From d265f48d7b8d613e51a2c58c8ee55efec434ed6e Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 3 Aug 2018 18:21:18 +0100 Subject: [PATCH] Don't use __attribute__((__visibility__("default"))) for clang on windows as it isn't supported. Fixes https://github.com/boostorg/config/issues/226. --- include/boost/config/compiler/clang.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index 3d893c68..3a59ff58 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -104,9 +104,9 @@ # define BOOST_SYMBOL_IMPORT __attribute__((__dllimport__)) #else # define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default"))) +# define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default"))) # define BOOST_SYMBOL_IMPORT #endif -#define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default"))) // // The BOOST_FALLTHROUGH macro can be used to annotate implicit fall-through