Fix uint64_t type error with gcc 13.3. (#299)
Etcd compiles successfully using gcc version 9.4.0, but fails when using version 13.3.0.  The reason why gcc works with version 9.4.0 is that the \<string\> include the \<char_traits.h\> that already include \<cstdint\>.  However, in version 13.3.0 of gcc, the \<char_traits.h\> header file conditionally includes cstdint  Therefore, including \<cstdint\> in Member.hpp is able to solve this problem, which is also in line with the principle of include-what-you-use. Related issue: #297 Signed-off-by: vegetableysm <yuanshumin.ysm@alibaba-inc.com>
This commit is contained in:
parent
216b86f8d7
commit
7c6e714f18
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef __V3_ETCDV3MEMBERS_HPP__
|
#ifndef __V3_ETCDV3MEMBERS_HPP__
|
||||||
#define __V3_ETCDV3MEMBERS_HPP__
|
#define __V3_ETCDV3MEMBERS_HPP__
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue