mirror of https://github.com/status-im/evmc.git
Introduce EVMC_DEPRECATED as portable __attribute__((deprecated))
This commit is contained in:
parent
d4fc289c80
commit
2827ca621b
|
@ -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 <stdbool.h> /* Definition of bool, true and false. */
|
||||
#include <stddef.h> /* Definition of size_t. */
|
||||
#include <stdint.h> /* Definition of int64_t, uint64_t. */
|
||||
|
|
Loading…
Reference in New Issue