aboutsummaryrefslogtreecommitdiffstats
path: root/snprintf.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-22 10:25:50 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-22 10:25:50 +0000
commitcc21ec8124253913242f0c748126582f7eba5999 (patch)
tree2389a626b6b9742b36c48950765bf32ef9bf806d /snprintf.h
parent6287e86539fe79adfe1f9e2899c4fda749dc4b25 (diff)
Do __attribute__ stuff if the GCC version number is greater than or
equal to 2, not just if it's equal to 2 - GCC 3.0 makes it 3, not 2.... svn path=/trunk/; revision=3765
Diffstat (limited to 'snprintf.h')
-rw-r--r--snprintf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/snprintf.h b/snprintf.h
index 00bf7b358b..b3928859fe 100644
--- a/snprintf.h
+++ b/snprintf.h
@@ -1,5 +1,5 @@
/*
- * $Id: snprintf.h,v 1.5 2000/11/21 21:24:52 guy Exp $
+ * $Id: snprintf.h,v 1.6 2001/07/22 10:25:48 guy Exp $
*/
#ifndef __ETHEREAL_SNPRINTF_H__
@@ -14,7 +14,7 @@
extern int vsnprintf(char *string, size_t length, const char * format,
va_list args);
-#if __GNUC__ == 2
+#if __GNUC__ >= 2
extern int snprintf(char *string, size_t length, const char * format, ...)
__attribute__((format (printf, 3, 4)));
#else