diff options
Diffstat (limited to 'helper/include/odp/helper/deprecated.h')
-rw-r--r-- | helper/include/odp/helper/deprecated.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/helper/include/odp/helper/deprecated.h b/helper/include/odp/helper/deprecated.h new file mode 100644 index 000000000..9251f2ca8 --- /dev/null +++ b/helper/include/odp/helper/deprecated.h @@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright (c) 2017-2018 Linaro Limited + * Copyright (c) 2021 Nokia + */ + +/** + * @file + * + * Macro for deprecated API definitions + */ + +#ifndef ODPH_DEPRECATED_H_ +#define ODPH_DEPRECATED_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <odp/helper/autoheader_external.h> + +/** + * @def ODPH_DEPRECATE + * + * Macro to deprecate helper API definitions + */ + +#if ODPH_DEPRECATED_API +#define ODPH_DEPRECATE(x) x +#else +#define ODPH_DEPRECATE(x) _deprecated_ ## x +#endif + +#ifdef __cplusplus +} +#endif + +#endif |