mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-23 05:59:40 +00:00
16 lines
446 B
C
16 lines
446 B
C
#ifndef ATTRIBUTES_H
|
|
#define ATTRIBUTES_H
|
|
|
|
// If not building with a modern GCC-like compiler then make any use of __attribute__ a no-op
|
|
#if (!defined(__GNUC__) && !defined(__clang__)) || defined(M2CTX) || defined(__sgi)
|
|
#ifndef __attribute__
|
|
#define __attribute__(x)
|
|
#endif
|
|
#endif
|
|
|
|
#define UNUSED __attribute__((unused))
|
|
#define FALLTHROUGH __attribute__((fallthrough))
|
|
#define NORETURN __attribute__((noreturn))
|
|
|
|
#endif
|