diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-06-14 19:56:05 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-06-14 19:56:05 +0000 |
commit | f602d80a10b4d62a8090af8c8b6b8fe17c9ea8a8 (patch) | |
tree | 5477641957815be6211782208116e9417df7cced /src/include | |
parent | 2bb6dc4b762a4574d658d543ab1a56c92d90ef0c (diff) | |
download | skalibs-f602d80a10b4d62a8090af8c8b6b8fe17c9ea8a8.tar.xz |
gccattributes.h: define gccattr_returns_twice
Signed-off-by: Jesse Young <jlyo@jlyo.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/gccattributes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/skalibs/gccattributes.h b/src/include/skalibs/gccattributes.h index 0584480..7892687 100644 --- a/src/include/skalibs/gccattributes.h +++ b/src/include/skalibs/gccattributes.h @@ -6,6 +6,7 @@ #ifdef __GNUC__ #define gccattr_noreturn __attribute__((__noreturn__)) +#define gccattr_returns_twice __attribute__((__returns_twice__)) #define gccattr_noinline __attribute__((__noinline__)) #define gccattr_inline __attribute__((__always_inline__)) #define gccattr_const __attribute__((__const__)) @@ -31,6 +32,7 @@ #else #define gccattr_noreturn +#define gccattr_returns_twice #define gccattr_noinline #define gccattr_inline #define gccattr_const @@ -46,6 +48,7 @@ #ifdef GCCATTR_COMPAT_0_22 #define _a_noreturn gccattr_noreturn +#define _a_returns_twice gccattr_returns_twice #define _a_noinline gccattr_noinline #define _a_inline gccattr_inline #define _a_const gccattr_const |