From: halcanary Date: Thu, 12 May 2016 17:09:58 +0000 (-0700) Subject: using_skia_and_harfbuzz: compile w/ Android NDK X-Git-Tag: submit/tizen/20180928.044319~129^2~541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd05e2a96ee3984c91817f87c0ea63b142de1cbb;p=platform%2Fupstream%2FlibSkiaSharp.git using_skia_and_harfbuzz: compile w/ Android NDK TBR=djsollen@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1977503002 Review-Url: https://codereview.chromium.org/1977503002 --- diff --git a/tools/using_skia_and_harfbuzz.cpp b/tools/using_skia_and_harfbuzz.cpp index 86c9accd33..1694e962e0 100644 --- a/tools/using_skia_and_harfbuzz.cpp +++ b/tools/using_skia_and_harfbuzz.cpp @@ -9,9 +9,11 @@ // produce a PDF file from UTF-8 text in stdin. #include +#include #include #include #include +#include #include @@ -46,7 +48,9 @@ struct DoubleOption : Option { value = atof(_value.c_str()); } virtual std::string valueToString() { - return std::to_string(value); + std::ostringstream stm; + stm << value; + return stm.str(); } DoubleOption(std::string selector, std::string description, double defaultValue) : Option(selector, description, defaultValue) {}