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

This commit is contained in:
Tim Wojtulewicz 2023-02-18 21:17:11 -07:00 committed by Tim Wojtulewicz
parent e05a0b8748
commit ba7a7c2201

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 "pac_action.h" #include "pac_action.h"
#include "pac_array.h" #include "pac_array.h"