-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathconfig.h.in
More file actions
49 lines (36 loc) · 1.14 KB
/
config.h.in
File metadata and controls
49 lines (36 loc) · 1.14 KB
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
43
44
45
46
47
48
49
/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
#ifndef LIBPLDM_CONFIG_H
#define LIBPLDM_CONFIG_H
#if defined __has_attribute
#if __has_attribute(visibility)
#define LIBPLDM_CC_VISIBILITY_DEFAULT __attribute__((visibility("default")))
#endif
#if __has_attribute(tainted_args)
#define LIBPLDM_CC_TAINTED_ARGS __attribute__((tainted_args))
#endif
#endif
#ifndef LIBPLDM_CC_VISIBILITY_DEFAULT
#define LIBPLDM_CC_VISIBILITY_DEFAULT
#endif
#ifndef LIBPLDM_CC_TAINTED_ARGS
#define LIBPLDM_CC_TAINTED_ARGS
#endif
#define LIBPLDM_ENTRYPOINT LIBPLDM_CC_VISIBILITY_DEFAULT LIBPLDM_CC_TAINTED_ARGS
#mesondefine HAVE_LIBPLDM_ABI_DEPRECATED
#if HAVE_LIBPLDM_ABI_DEPRECATED
#define LIBPLDM_ABI_DEPRECATED LIBPLDM_ENTRYPOINT
#define LIBPLDM_ABI_DEPRECATED_UNSAFE LIBPLDM_CC_VISIBILITY_DEFAULT
#else
#define LIBPLDM_ABI_DEPRECATED
#define LIBPLDM_ABI_DEPRECATED_UNSAFE
#endif
#define HAVE_LIBPLDM_ABI_STABLE 1
#define LIBPLDM_ABI_STABLE LIBPLDM_ENTRYPOINT
#mesondefine HAVE_LIBPLDM_ABI_TESTING
#if HAVE_LIBPLDM_ABI_TESTING
#define LIBPLDM_ABI_TESTING LIBPLDM_ENTRYPOINT
#else
#define LIBPLDM_ABI_TESTING
#endif
#mesondefine HAVE_STRUCT_MCTP_FQ_ADDR
#endif