summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glcpp-parse.y4
-rw-r--r--glcpp.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/glcpp-parse.y b/glcpp-parse.y
index 0d3afa7af6..2c0fe9a6af 100644
--- a/glcpp-parse.y
+++ b/glcpp-parse.y
@@ -107,6 +107,7 @@ glcpp_parser_lex (glcpp_parser_t *parser);
%}
%union {
+ intmax_t imaxval;
int ival;
char *str;
argument_list_t *argument_list;
@@ -119,7 +120,8 @@ glcpp_parser_lex (glcpp_parser_t *parser);
%lex-param {glcpp_parser_t *parser}
%token DEFINE DEFINED ELIF ELSE ENDIF FUNC_MACRO IDENTIFIER IDENTIFIER_FINALIZED IF IFDEF IFNDEF INTEGER OBJ_MACRO NEWLINE SPACE TOKEN UNDEF
-%type <ival> expression INTEGER punctuator
+%type <ival> punctuator
+%type <imaxval> expression INTEGER
%type <str> content FUNC_MACRO IDENTIFIER IDENTIFIER_FINALIZED OBJ_MACRO
%type <argument_list> argument_list
%type <string_list> macro parameter_list
diff --git a/glcpp.h b/glcpp.h
index 33ece8f92b..503731b85b 100644
--- a/glcpp.h
+++ b/glcpp.h
@@ -24,6 +24,8 @@
#ifndef GLCPP_H
#define GLCPP_H
+#include <stdint.h>
+
#include <talloc.h>
#include "hash_table.h"