1 /* Control of exported symbols from libintl.
2 Copyright (C) 2005-2022 Free Software Foundation, Inc.
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16
17 #if @HAVE_VISIBILITY@ && BUILDING_LIBINTL
18 #define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default")))
19 #elif (defined _WIN32 && !defined __CYGWIN__) && defined WOE32DLL && BUILDING_LIBINTL
20 #define LIBINTL_DLL_EXPORTED __declspec(dllexport)
21 #elif (defined _WIN32 && !defined __CYGWIN__) && defined WOE32DLL
22 #define LIBINTL_DLL_EXPORTED __declspec(dllimport)
23 #else
24 #define LIBINTL_DLL_EXPORTED
25 #endif