diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-22 10:25:50 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-22 10:25:50 +0000 |
commit | 8bfcd05352d1c990793354cc5b29f0a8217decb3 (patch) | |
tree | 2389a626b6b9742b36c48950765bf32ef9bf806d /snprintf.h | |
parent | f52c40661e3f8c4c6192d7655c0a15fff8d8c18c (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....
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3765 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'snprintf.h')
-rw-r--r-- | snprintf.h | 4 |
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 |