From 2827ca621b60e37b43116588bab39a00293e3475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 21 Jan 2019 11:21:36 +0100 Subject: [PATCH] Introduce EVMC_DEPRECATED as portable __attribute__((deprecated)) --- include/evmc/evmc.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/evmc/evmc.h b/include/evmc/evmc.h index 5d94bcf..1eeb941 100644 --- a/include/evmc/evmc.h +++ b/include/evmc/evmc.h @@ -11,6 +11,17 @@ #ifndef EVMC_H #define EVMC_H +#ifdef __has_attribute +#if __has_attribute(deprecated) +#define EVMC_DEPRECATED __attribute__((deprecated)) +#endif +#endif + +#ifndef EVMC_DEPRECATED +#define EVMC_DEPRECATED +#endif + + #include /* Definition of bool, true and false. */ #include /* Definition of size_t. */ #include /* Definition of int64_t, uint64_t. */