Skip to content

add explicit include for <cstdint> #5458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

rathann
Copy link
Contributor

@rathann rathann commented Jan 26, 2023

This fixes the following error when compiling with GCC 13:

In file included from /builddir/build/BUILD/binaryen-version_111/test/gtest/wat-lexer.cpp:19:
/builddir/build/BUILD/binaryen-version_111/src/wat-lexer.h:62:3: error: 'uint64_t' does not name a type
   62 |   uint64_t n;
      |   ^~~~~~~~
/builddir/build/BUILD/binaryen-version_111/src/wat-lexer.h:24:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   23 | #include <variant>
  +++ |+#include <cstdint>
...

This is required before #5456 can be reproduced.

This fixes the following error when compiling with GCC 13:
```
In file included from /builddir/build/BUILD/binaryen-version_111/test/gtest/wat-lexer.cpp:19:
/builddir/build/BUILD/binaryen-version_111/src/wat-lexer.h:62:3: error: 'uint64_t' does not name a type
   62 |   uint64_t n;
      |   ^~~~~~~~
/builddir/build/BUILD/binaryen-version_111/src/wat-lexer.h:24:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   23 | #include <variant>
  +++ |+#include <cstdint>
...
```
@kripken kripken merged commit 07362b3 into WebAssembly:main Jan 26, 2023
drahnr added a commit to drahnr/substrate that referenced this pull request May 10, 2023
MathisWellmann pushed a commit to gensyn-ai/substrate that referenced this pull request Jul 3, 2023
MathisWellmann pushed a commit to gensyn-ai/substrate that referenced this pull request Jul 3, 2023
MathisWellmann pushed a commit to gensyn-ai/substrate that referenced this pull request Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants