blob: 53bf20828062e70b3ae4163857dcf588998bb299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef EXAMPLE_EXPORT_H
#define EXAMPLE_EXPORT_H
#ifdef EXAMPLE_STATIC_DEFINE
# define EXAMPLE_EXPORT
# define EXAMPLE_NO_EXPORT
#else
# ifndef EXAMPLE_EXPORT
# ifdef extension_EXPORTS
/* We are building this library */
# define EXAMPLE_EXPORT extern "C" __attribute__((visibility("default")))
# else
/* We are using this library */
# define EXAMPLE_EXPORT __attribute__((visibility("default")))
# endif
# endif
# ifndef EXAMPLE_NO_EXPORT
# define EXAMPLE_NO_EXPORT __attribute__((visibility("hidden")))
# endif
#endif
#ifndef EXAMPLE_DEPRECATED
# define EXAMPLE_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef EXAMPLE_DEPRECATED_EXPORT
# define EXAMPLE_DEPRECATED_EXPORT EXAMPLE_EXPORT EXAMPLE_DEPRECATED
#endif
#ifndef EXAMPLE_DEPRECATED_NO_EXPORT
# define EXAMPLE_DEPRECATED_NO_EXPORT EXAMPLE_NO_EXPORT EXAMPLE_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef EXAMPLE_NO_DEPRECATED
# define EXAMPLE_NO_DEPRECATED
# endif
#endif
#endif /* EXAMPLE_EXPORT_H */
|