blob: cce2560b8d298c99256705d9e4ef503bb6849ce1 (
plain) (
blame)
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 CBOR_EXPORT_H
#define CBOR_EXPORT_H
#ifdef CBOR_STATIC_DEFINE
# define CBOR_EXPORT
# define CBOR_NO_EXPORT
#else
# ifndef CBOR_EXPORT
# ifdef cbor_EXPORTS
/* We are building this library */
# define CBOR_EXPORT __attribute__((visibility("default")))
# else
/* We are using this library */
# define CBOR_EXPORT __attribute__((visibility("default")))
# endif
# endif
# ifndef CBOR_NO_EXPORT
# define CBOR_NO_EXPORT __attribute__((visibility("hidden")))
# endif
#endif
#ifndef CBOR_DEPRECATED
# define CBOR_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef CBOR_DEPRECATED_EXPORT
# define CBOR_DEPRECATED_EXPORT CBOR_EXPORT CBOR_DEPRECATED
#endif
#ifndef CBOR_DEPRECATED_NO_EXPORT
# define CBOR_DEPRECATED_NO_EXPORT CBOR_NO_EXPORT CBOR_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef CBOR_NO_DEPRECATED
# define CBOR_NO_DEPRECATED
# endif
#endif
#endif /* CBOR_EXPORT_H */
|