blob: bfa6dd95a793f6eebf11b49e96549a8b0c466eab (
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
|
#ifndef DALIST_API_H
#define DALIST_API_H
/* host type (posix-libc/free-standing) */
#include "dalist_env.h"
/* dalist_export */
#if defined(__attr_export__)
#define dalist_export __attr_export__
#else
#define dalist_export
#endif
/* dalist_import */
#if defined(__attr_import__)
#define dalist_import __attr_import__
#else
#define dalist_import
#endif
/* protected visibility */
#if defined(__attr_protected__)
#define dalist_protected __attr_protected__
#else
#define dalist_protected
#endif
/* dalist_api */
#if defined (DALIST_EXPORT)
#define dalist_api dalist_export
#elif defined (DALIST_IMPORT)
#define dalist_api dalist_import
#elif defined (DALIST_STATIC)
#define dalist_api dalist_protected
#else
#define dalist_api
#endif
#endif
|