blob: ddaaf160900b5c16a51cd73dcc2d22d42fae2b8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#if defined(_WIN32) || defined(WIN32)
# define DECL_EXPORT __declspec(dllexport)
# define DECL_IMPORT __declspec(dllimport)
#else
# define DECL_EXPORT __attribute__((visibility("default")))
# define DECL_IMPORT __attribute__((visibility("default")))
# endif
#if defined(LIBA_STATIC_LIBRARY)
# define LIBA_EXPORT
#else
# if defined(MYLIB_LIBRARY)
# define LIBA_EXPORT DECL_EXPORT
# else
# define LIBA_EXPORT DECL_IMPORT
# endif
#endif
LIBA_EXPORT void foo();
|