mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 10:14:13 +01:00
helpers.cpp: Fix GLIBCXX_RELEASE check < 8 (#7062)
This commit is contained in:
parent
04b268e319
commit
d1bfad9890
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ static const uint16_t CRC16_1021_BE_LUT_H[] = {0x0000, 0x1231, 0x2462, 0x3653, 0
|
||||||
|
|
||||||
// STL backports
|
// STL backports
|
||||||
|
|
||||||
#if _GLIBCXX_RELEASE < 7
|
#if _GLIBCXX_RELEASE < 8
|
||||||
std::string to_string(int value) { return str_snprintf("%d", 32, value); } // NOLINT
|
std::string to_string(int value) { return str_snprintf("%d", 32, value); } // NOLINT
|
||||||
std::string to_string(long value) { return str_snprintf("%ld", 32, value); } // NOLINT
|
std::string to_string(long value) { return str_snprintf("%ld", 32, value); } // NOLINT
|
||||||
std::string to_string(long long value) { return str_snprintf("%lld", 32, value); } // NOLINT
|
std::string to_string(long long value) { return str_snprintf("%lld", 32, value); } // NOLINT
|
||||||
|
|
Loading…
Reference in a new issue