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> #449

Merged
merged 1 commit into from Jan 28, 2023
Merged

include <cstdint> #449

merged 1 commit into from Jan 28, 2023

Conversation

kraj
Copy link
Contributor

@kraj kraj commented Jan 26, 2023

gcc 13 libstdc++ moved some includes around and as a result is no longer transitively included [1]. Explicitly include it for uintXX_t.

Fixes

../git/src/sw/redis++/utils.h:187:1: error: 'uint16_t' does not name a type
187 | uint16_t crc16(const char *buf, int len);
| ^~~~~~~~

[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

Signed-off-by: Khem Raj raj.khem@gmail.com

gcc 13 libstdc++ moved some includes around and as a result <cstdint>
is no longer transitively included [1]. Explicitly include it for uintXX_t.

Fixes

../git/src/sw/redis++/utils.h:187:1: error: 'uint16_t' does not name a type
  187 | uint16_t crc16(const char *buf, int len);
      | ^~~~~~~~

[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
@sewenew sewenew merged commit afa0e3f into sewenew:master Jan 28, 2023
@sewenew
Copy link
Owner

sewenew commented Jan 28, 2023

Thanks for your contribution!

Regards

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.

None yet

2 participants