bifcl: Include stdint.h early to prevent redefinition of int type macros

This commit is contained in:
Tim Wojtulewicz 2023-02-18 21:13:33 -07:00 committed by Tim Wojtulewicz
parent 0c4676e835
commit 4ed4f3e1b8

View file

@ -1,3 +1,11 @@
%top{
// Include stdint.h at the start of the generated file. Typically
// MSVC will include this header later, after the definitions of
// the integral type macros. MSVC then complains that about the
// redefinition of the types. Including stdint.h early avoids this.
#include <stdint.h>
}
%{
#include <ctype.h>
#include <string.h>