X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=intl%2Fintl-compat.c;h=9b9ecbb648a7930249c4be075dba8fa9a662764b;hb=2098f1d8c20d51e63e670bcdc9da8996068975bf;hp=15be09cbcbe70f4850b9732c2b48b227f2267446;hpb=f84a1c6e5c6173e7d0aea0fb2adde988ee5f7b27;p=lyx.git diff --git a/intl/intl-compat.c b/intl/intl-compat.c index 15be09cbcb..9b9ecbb648 100644 --- a/intl/intl-compat.c +++ b/intl/intl-compat.c @@ -1,6 +1,6 @@ /* intl-compat.c - Stub functions to call gettext functions from GNU gettext Library. - Copyright (C) 1995, 2000-2003 Software Foundation, Inc. + Copyright (C) 1995, 2000-2003, 2005 Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -49,7 +49,9 @@ /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ -#if defined _MSC_VER && BUILDING_DLL +#if HAVE_VISIBILITY && BUILDING_DLL +# define DLL_EXPORTED __attribute__((__visibility__("default"))) +#elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED