From f9bdd87ced29825c1816ccd0a9b0545855611702 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 30 Mar 2009 12:23:44 -0700 Subject: Use printf attribute on orc_compiler_add_code --- orc/orcutils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'orc/orcutils.h') diff --git a/orc/orcutils.h b/orc/orcutils.h index 511773f..d921383 100644 --- a/orc/orcutils.h +++ b/orc/orcutils.h @@ -89,6 +89,12 @@ typedef unsigned int orc_bool; #define ORC_INTERNAL #endif +#if ORC_GNUC_PREREQ(3,3) /* guess */ +#define ORC_GNU_PRINTF(a,b) __attribute__((__format__ (__printf__, a, b))) +#else +#define ORC_GNU_PRINTF(a,b) +#endif + #ifdef __cplusplus #define ORC_BEGIN_DECLS extern "C" { #define ORC_END_DECLS } -- cgit v1.2.1