Introduce EVMC_DEPRECATED as portable __attribute__((deprecated))

This commit is contained in:
Paweł Bylica 2019-01-21 11:21:36 +01:00
parent d4fc289c80
commit 2827ca621b
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 11 additions and 0 deletions

View File

@ -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. */