diff --git a/tools/bifcl/builtin-func.l b/tools/bifcl/builtin-func.l index 93294e9f93..fe6b028317 100644 --- a/tools/bifcl/builtin-func.l +++ b/tools/bifcl/builtin-func.l @@ -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 +} + %{ #include #include