From f54d6067c5f5b304eac435815e776673548b564b Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Thu, 30 Jun 2022 03:46:37 +0200 Subject: [PATCH] Fix compiling under linux --- src/numberparsing.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/numberparsing.h b/src/numberparsing.h index 256e4b3..374b2d1 100644 --- a/src/numberparsing.h +++ b/src/numberparsing.h @@ -61,6 +61,7 @@ template<> inline tl::expected fromString(std:: return val; } +#ifdef ESP_PLATFORM template<> inline tl::expected fromString(std::string_view str) { int val; @@ -76,6 +77,7 @@ template<> inline tl::expected fromString inline tl::expected fromString(std::string_view str) {