mptcpd
Multipath TCP Daemon
Loading...
Searching...
No Matches
export.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
13#ifndef MPTCPD_EXPORT_H
14#define MPTCPD_EXPORT_H
15
16// Internal macros
17#if __GNUC__ >= 4
18# define MPTCPD_DLL_IMPORT __attribute__((visibility ("default")))
19# define MPTCPD_DLL_EXPORT __attribute__((visibility ("default")))
20# define MPTCPD_DLL_LOCAL __attribute__((visibility ("hidden")))
21#else
22# define MPTCPD_DLL_IMPORT
23# define MPTCPD_DLL_EXPORT
24# define MPTCPD_DLL_LOCAL
25#endif
26
27#ifdef MPTCPD_DLL
28# ifdef MPTCPD_DLL_EXPORTS
29# define MPTCPD_API MPTCPD_DLL_EXPORT
30# else
31# define MPTCPD_API MPTCPD_DLL_IMPORT
32# endif
33# define MPTCPD_LOCAL MPTCPD_DLL_LOCAL
34#else
35# define MPTCPD_API
36# define MPTCPD_LOCAL
37#endif
38
39#endif // MPTCPD_EXPORT_H