aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-07 11:00:02 -0500
committerMike Frysinger <vapier@gentoo.org>2012-06-23 17:23:10 -0400
commit2995c5954980f84b0e4a5501dbdde92ec57293ca (patch)
treee41f44430a8dac74311e595358ed14102691052b /localdecls.h
parentupdate ax_*.m4 files from upstream (diff)
downloadsandbox-2995c5954980f84b0e4a5501dbdde92ec57293ca.tar.gz
sandbox-2995c5954980f84b0e4a5501dbdde92ec57293ca.tar.bz2
sandbox-2995c5954980f84b0e4a5501dbdde92ec57293ca.zip
libsandbox: create more defines for gcc attributes
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'localdecls.h')
-rw-r--r--localdecls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h
index 674e848..eef7295 100644
--- a/localdecls.h
+++ b/localdecls.h
@@ -119,5 +119,7 @@ typedef struct user_regs_struct trace_regs;
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
+#define __noreturn __attribute__((noreturn))
+#define __printf(x, y) __attribute__((__format__(__printf__, x, y)))
#endif