summaryrefslogtreecommitdiff
path: root/source4/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include/includes.h')
-rw-r--r--source4/include/includes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index c67b3c8195..7ea85b4fb9 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -53,10 +53,11 @@
#define PRINTCAP_NAME "/etc/printcap"
#endif
-#ifdef __GNUC__
+#if (__GNUC__ >= 3)
/** Use gcc attribute to check printf fns. a1 is the 1-based index of
* the parameter containing the format, and a2 the index of the first
- * argument. **/
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
#else
#define PRINTF_ATTRIBUTE(a1, a2)