Debian Codegraph @

crt/aws-c-common/include/aws/common/exports.h

raw symbols SCIP
1 #ifndef AWS_COMMON_EXPORTS_H
2 #define AWS_COMMON_EXPORTS_H
3 /**
4 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 * SPDX-License-Identifier: Apache-2.0.
6 */
7 #if defined(AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined(_WIN32)
8 # ifdef AWS_COMMON_USE_IMPORT_EXPORT
9 # ifdef AWS_COMMON_EXPORTS
10 # define AWS_COMMON_API __declspec(dllexport)
11 # else
12 # define AWS_COMMON_API __declspec(dllimport)
13 # endif /* AWS_COMMON_EXPORTS */
14 # else
15 # define AWS_COMMON_API
16 # endif /* AWS_COMMON_USE_IMPORT_EXPORT */
17
18 #else /* defined (AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) */
19
20 # if defined(AWS_COMMON_USE_IMPORT_EXPORT) && defined(AWS_COMMON_EXPORTS)
21 # define AWS_COMMON_API __attribute__((visibility("default")))
22 # else
23 # define AWS_COMMON_API
24 # endif
25
26 #endif /* defined (AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) */
27
28 #ifdef AWS_NO_STATIC_IMPL
29 # define AWS_STATIC_IMPL AWS_COMMON_API
30 #endif
31
32 #ifndef AWS_STATIC_IMPL
33 /*
34 * In order to allow us to export our inlinable methods in a DLL/.so, we have a designated .c
35 * file where this AWS_STATIC_IMPL macro will be redefined to be non-static.
36 */
37 # define AWS_STATIC_IMPL static inline
38 #endif
39
40 #endif /* AWS_COMMON_EXPORTS_H */