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