mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Include stdint.h early to prevent redefinition of int type macros
This commit is contained in:
parent
e05a0b8748
commit
ba7a7c2201
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue