NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
Exports.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2015-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
28 #ifndef DW_CORE_EXPORTS_H_
29 #define DW_CORE_EXPORTS_H_
30 
31 // clang-format off
32 #if defined(DW_EXPORTS) && !defined(__COVERITY__)
33  // coverity[autosar_cpp14_a1_1_1_violation] RFD Accepted: TID-3086
34  #define DW_API_PUBLIC __attribute__ ((visibility ("default")))
35  // coverity[autosar_cpp14_a1_1_1_violation] RFD Accepted: TID-3086
36  #define DW_API_LOCAL __attribute__ ((visibility ("hidden")))
37 #else
38  #define DW_API_PUBLIC
39  #define DW_API_LOCAL
40 #endif
41 
42 #if defined(__GNUC__) && !defined(__COVERITY__)
43  #define DW_DEPRECATED(msg) __attribute__((deprecated(msg)))
44  #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100) >= 60000 /* gcc >= 6 */ || defined DW_FORCE_DEPRECATED_ENUM || __clang_major__ >= 10)
45  #define DW_DEPRECATED_ENUM(msg) __attribute__ ((deprecated(msg)))
46  #else
47  #define DW_DEPRECATED_ENUM(msg)
48  #endif
49 #else
50  #define DW_DEPRECATED(msg)
51  #define DW_DEPRECATED_ENUM(msg)
52 #endif
53 // clang-format on
54 
56 #endif // DW_CORE_EXPORTS_H_