aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lemon/lemon.c
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 /tools/lemon/lemon.c
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 'tools/lemon/lemon.c')
-rw-r--r--tools/lemon/lemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c
index 6738308ae9..a5f0421c2d 100644
--- a/tools/lemon/lemon.c
+++ b/tools/lemon/lemon.c
@@ -25,7 +25,7 @@
** drh@acm.org
** http://www.hwaci.com/drh/
**
-** $Id: lemon.c,v 1.10 2001/06/26 20:52:19 guy Exp $
+** $Id: lemon.c,v 1.11 2001/07/22 10:25:50 guy Exp $
*/
#include <stdio.h>
#include <stdarg.h>
@@ -263,7 +263,7 @@ void Configlist_eat(struct config *);
void Configlist_reset(void);
/********* From the file "error.h" ***************************************/
-#if __GNUC__ == 2
+#if __GNUC__ >= 2
void ErrorMsg( char *, int, char *, ... )
__attribute__((format (printf, 3, 4)));
#else