lib/sourcelocation.h: add missing <cstdint> include (#4474)
Without the change build on upcoming gcc-13 fails as: In file included from lib/symboldatabase.h:28, from lib/astutils.h:36, from test/testastutils.cpp:20: lib/sourcelocation.h:52:10: error: 'uint_least32_t' in namespace 'std' does not name a type 52 | std::uint_least32_t m_line = 0; | ^~~~~~~~~~~~~~
This commit is contained in:
parent
21db0b98a6
commit
3b840e7ff1
|
@ -45,6 +45,7 @@ using SourceLocation = std::source_location;
|
||||||
#include <experimental/source_location>
|
#include <experimental/source_location>
|
||||||
using SourceLocation = std::experimental::source_location;
|
using SourceLocation = std::experimental::source_location;
|
||||||
#else
|
#else
|
||||||
|
#include <cstdint>
|
||||||
struct SourceLocation {
|
struct SourceLocation {
|
||||||
static SourceLocation current() {
|
static SourceLocation current() {
|
||||||
return SourceLocation();
|
return SourceLocation();
|
||||||
|
|
Loading…
Reference in New Issue