diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-11 21:30:07 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-11 23:48:44 +0100 |
commit | bb9aa51ebe8376adc7ffdef5ee6bb3ca959be6e8 (patch) | |
tree | d0d648ee3db24df0e5ed4fbdcb2b837db1080f97 /lib/macros.h | |
parent | 0f44aeee1c3808ef82e49afb984a2ff9c25223bf (diff) |
fmt,macros: update from upstream
Diffstat (limited to 'lib/macros.h')
-rw-r--r-- | lib/macros.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/macros.h b/lib/macros.h index a61f80e..6369599 100644 --- a/lib/macros.h +++ b/lib/macros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2015 Richard Braun. + * Copyright (c) 2009-2018 Richard Braun. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -91,4 +91,16 @@ #define __unused __attribute__((unused)) #endif +#ifndef __used +#define __used __attribute__((used)) +#endif + +#ifndef __fallthrough +#if __GNUC__ >= 7 +#define __fallthrough __attribute__((fallthrough)) +#else /* __GNUC__ >= 7 */ +#define __fallthrough +#endif /* __GNUC__ >= 7 */ +#endif + #endif /* _MACROS_H */ |