Ardour
9.0-pre0-582-g084a23a80d
libpbd_visibility.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2013-2015 Paul Davis <paul@linuxaudiosystems.com>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 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 General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#pragma once
20
21
#if defined(COMPILER_MSVC)
22
#define LIBPBD_DLL_IMPORT __declspec(dllimport)
23
#define LIBPBD_DLL_EXPORT __declspec(dllexport)
24
#define LIBPBD_DLL_LOCAL
25
#define LIBPBD_TEMPLATE_DLL_IMPORT
26
#define LIBPBD_TEMPLATE_DLL_EXPORT
27
#define LIBPBD_TEMPLATE_MEMBER_DLL_IMPORT __declspec(dllimport)
28
#define LIBPBD_TEMPLATE_MEMBER_DLL_EXPORT __declspec(dllexport)
29
#else
30
#define LIBPBD_DLL_IMPORT __attribute__ ((visibility ("default"
)))
31
#define LIBPBD_DLL_EXPORT __attribute__ ((visibility ("default"
)))
32
#define LIBPBD_DLL_LOCAL __attribute__ ((visibility ("hidden"
)))
33
#define LIBPBD_TEMPLATE_DLL_IMPORT __attribute__ ((visibility ("default"
)))
34
#define LIBPBD_TEMPLATE_DLL_EXPORT __attribute__ ((visibility ("default"
)))
35
#define LIBPBD_TEMPLATE_MEMBER_DLL_IMPORT
36
#define LIBPBD_TEMPLATE_MEMBER_DLL_EXPORT
37
#endif
38
39
#ifdef LIBPBD_STATIC
// libpbd is a DLL
40
#define LIBPBD_API
41
#define LIBPBD_LOCAL
42
#define LIBPBD_TEMPLATE_API
43
#define LIBPBD_TEMPLATE_MEMBER_API
44
#else
45
#ifdef LIBPBD_DLL_EXPORTS
// defined if we are building the libpbd DLL (instead of using it)
46
#define LIBPBD_API LIBPBD_DLL_EXPORT
47
#define LIBPBD_TEMPLATE_API LIBPBD_TEMPLATE_DLL_EXPORT
48
#define LIBPBD_TEMPLATE_MEMBER_API LIBPBD_TEMPLATE_MEMBER_DLL_EXPORT
49
#else
50
#define LIBPBD_API LIBPBD_DLL_IMPORT
51
#define LIBPBD_TEMPLATE_API LIBPBD_TEMPLATE_DLL_IMPORT
52
#define LIBPBD_TEMPLATE_MEMBER_API LIBPBD_TEMPLATE_MEMBER_DLL_IMPORT
53
#endif
54
#define LIBPBD_LOCAL LIBPBD_DLL_LOCAL
55
#endif
56
libs
pbd
pbd
libpbd_visibility.h
Generated on Wed Dec 25 2024 05:44:33 for Ardour by
1.9.1