From 4ed4f3e1b84f1af450fab1c066d945ca4bfedd6f Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Sat, 18 Feb 2023 21:13:33 -0700 Subject: [PATCH] bifcl: Include stdint.h early to prevent redefinition of int type macros --- tools/bifcl/builtin-func.l | 8 ++++++++ 1 file changed, 8 insertions(+) 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