summaryrefslogtreecommitdiff
path: root/orc/orcutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'orc/orcutils.h')
-rw-r--r--orc/orcutils.h6
1 files changed, 6 insertions, 0 deletions
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 }