Cleanup macro checks in rjp.h
This commit is contained in:
parent
a64e0e86ee
commit
1b649fb582
@ -22,26 +22,23 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"{
|
extern "C"{
|
||||||
#endif
|
#endif
|
||||||
#ifndef __STDC_VERSION__
|
|
||||||
# ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
# if __cplusplus >= 201402L
|
# if __cplusplus >= 201402L
|
||||||
# define DEPRECATED(str) [[deprecated(str)]]
|
|
||||||
# elif defined(__GNUC__) || defined(__clang__)
|
|
||||||
# define DEPRECATED(str) __attribute__((deprecated(str)))
|
|
||||||
# else
|
|
||||||
# define DEPRECATED(str)
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
# define DEPRECATED(str)
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if __STDC_VERSION__ > 201710L
|
|
||||||
# define DEPRECATED(str) [[deprecated(str)]]
|
# define DEPRECATED(str) [[deprecated(str)]]
|
||||||
# elif defined(__GNUC__) || defined(__clang__)
|
# elif defined(__GNUC__) || defined(__clang__)
|
||||||
# define DEPRECATED(str) __attribute__((deprecated(str)))
|
# define DEPRECATED(str) __attribute__((deprecated(str)))
|
||||||
|
# elif __cplusplus >= 201103L
|
||||||
|
# define DEPRECATED(str) [[deprecated]]
|
||||||
# else
|
# else
|
||||||
# define DEPRECATED(str)
|
# define DEPRECATED(str)
|
||||||
# endif
|
# endif
|
||||||
|
#elif __STDC_VERSION__ > 201710L
|
||||||
|
# define DEPRECATED(str) [[deprecated(str)]]
|
||||||
|
#elif defined(__GNUC__) || defined(__clang__)
|
||||||
|
# define DEPRECATED(str) __attribute__((deprecated(str)))
|
||||||
|
#else
|
||||||
|
# define DEPRECATED(str)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RJP_int
|
#ifndef RJP_int
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user