Skip to content
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

Include <cstdint> when generating enums #477

Closed
alexeyr opened this issue Nov 16, 2020 · 1 comment · Fixed by #478
Closed

Include <cstdint> when generating enums #477

alexeyr opened this issue Nov 16, 2020 · 1 comment · Fixed by #478
Labels

Comments

@alexeyr
Copy link

alexeyr commented Nov 16, 2020

When I generated code with a shared enum, I got this error from MSVC:

'uint8_t': must be a simple type or resolve to one

Generated code needs #include <cstdint> when these types are used. The obvious workaround is to include it in my own header.

@dtolnay
Copy link
Owner

dtolnay commented Nov 16, 2020

Thanks for the report -- I've published 0.5.10 with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants