Fixed `deprecated` macro conflicts with attribute usage. (renamed to `_deprecated`)

Fortune for naka's current commit: Blessing − 吉
master
Avril 3 years ago
parent 8de332dbd4
commit a66da84047
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -18,11 +18,13 @@
#define _cold __attribute__((cold))
#define _hot __attribute__((hot))
#define _dead __attribute__((unused))
#ifndef __cplusplus
#define noreturn __attribute__((noreturn))
#define deprecated __attribute__((deprecated))
#define deprecated_message(str) __attribute__((deprecated(str)))
#define _deprecated __attribute__((deprecated))
#define deprecated_message(str) __attribute__((deprecated(str)))
#define _deprecated_msg(str) deprecated_message(str)
#endif
#define noinline __attribute__((noinline))

Loading…
Cancel
Save