summaryrefslogtreecommitdiff
path: root/orc/orcutils.h
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-03-30 12:23:44 -0700
committerDavid Schleef <ds@schleef.org>2009-03-31 11:03:48 -0700
commitf9bdd87ced29825c1816ccd0a9b0545855611702 (patch)
tree7f65e787a9c86057236554558a3c4d412095f6c0 /orc/orcutils.h
parentce4e34d8f5997a09dee1a92367a74c80c0fbeeab (diff)
downloadorc-f9bdd87ced29825c1816ccd0a9b0545855611702.tar.gz
Use printf attribute on orc_compiler_add_code
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 }