sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.64k stars 351 forks source link

include <cstdint> #449

Closed kraj closed 1 year ago

kraj commented 1 year ago

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

sewenew commented 1 year ago

Thanks for your contribution!

Regards