aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lemon/lempar.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lemon/lempar.c')
-rw-r--r--tools/lemon/lempar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lemon/lempar.c b/tools/lemon/lempar.c
index 97074b5635..58b6b84b11 100644
--- a/tools/lemon/lempar.c
+++ b/tools/lemon/lempar.c
@@ -252,7 +252,7 @@ const char *ParseTokenName(int tokenType){
** A pointer to a parser. This pointer is used in subsequent calls
** to Parse and ParseFree.
*/
-#if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 16))
+#if GLIB_CHECK_VERSION(2,16,0)
void *ParseAlloc(void *(*mallocProc)(gsize)){
yyParser *pParser;
pParser = (yyParser*)(*mallocProc)( (gsize)sizeof(yyParser) );