DPDK  19.11.14
rte_compat.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015 Neil Horman <nhorman@tuxdriver.com>.
3  * All rights reserved.
4  */
5 
6 #ifndef _RTE_COMPAT_H_
7 #define _RTE_COMPAT_H_
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #ifndef ALLOW_EXPERIMENTAL_API
14 
15 #define __rte_experimental \
16 __attribute__((deprecated("Symbol is not yet part of stable ABI"), \
17 section(".text.experimental")))
18 
19 #else
20 
21 #define __rte_experimental \
22 __attribute__((section(".text.experimental")))
23 
24 #endif
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif /* _RTE_COMPAT_H_ */