Просмотр исходного кода

COMP: Added forward declaration of yylex.

Brad King 21 лет назад
Родитель
Сommit
da7b9d306e
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      Source/cmDependsFortranParser.y

+ 4 - 0
Source/cmDependsFortranParser.y

@@ -45,6 +45,10 @@ Run bison like this:
 
 #include "cmDependsFortranLexer.h"  /* Interface to lexer object.  */
 #include "cmDependsFortranParser.h" /* Interface to parser object.  */
+#include "cmDependsFortranParserTokens.h" /* Need YYSTYPE for YY_DECL.  */
+
+/* Forward declare the lexer entry point.  */
+YY_DECL;
 
 /* Internal utility functions.  */
 static void cmDependsFortranError(yyscan_t yyscanner, const char* message);