From 67d54f155987698ee0de730d258109e05a5223c1 Mon Sep 17 00:00:00 2001 From: Augusto Fraga Giachero Date: Mon, 11 Mar 2019 09:37:47 -0300 Subject: [PATCH] Fix build errors when targeting the Android API 14 or older It seems that the Android NDK doesn't fully support the C++11 standard, at least when targeting older API levels. Luckily, only some basic numeric <-> string conversion functions needed to be replaced. --- docopt.cpp | 8 +++++--- docopt_value.h | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docopt.cpp b/docopt.cpp index 937845d..0875855 100644 --- a/docopt.cpp +++ b/docopt.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -305,9 +306,10 @@ static PatternList parse_short(Tokens& tokens, std::vector