rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 18802a1a4568b503741c7af17052ab8a9db927ad
parent 7f052e0211572b1ad86658386e2be8c648d22c7b
Author: vaplv <vincent.forest@meso-star.com>
Date:   Fri, 31 Mar 2017 14:52:18 +0200

Add the DEPRECATED macro

Diffstat:
Msrc/rsys.h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/rsys.h b/src/rsys.h @@ -376,6 +376,14 @@ typedef int res_T; ? (uintptr_t)(B) < ((uintptr_t)(A) + (SzA)) \ : (uintptr_t)(A) < ((uintptr_t)(B) + (SzB))) +#ifdef COMPILER_CL + #define DEPRECATED __declspec(deprecated) +#elif defined COMPILER_GCC + #define DEPRECATED __attribute__((deprecated)) +#else + #define DEPRECATED +#endif + #ifdef __cplusplus #define BEGIN_DECLS extern "C" { #define END_DECLS }