diff options
author | David Schleef <ds@schleef.org> | 2009-03-30 12:23:44 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2009-03-31 11:03:48 -0700 |
commit | f9bdd87ced29825c1816ccd0a9b0545855611702 (patch) | |
tree | 7f65e787a9c86057236554558a3c4d412095f6c0 /orc/orcutils.h | |
parent | ce4e34d8f5997a09dee1a92367a74c80c0fbeeab (diff) | |
download | orc-f9bdd87ced29825c1816ccd0a9b0545855611702.tar.gz |
Use printf attribute on orc_compiler_add_code
Diffstat (limited to 'orc/orcutils.h')
-rw-r--r-- | orc/orcutils.h | 6 |
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 } |