using_skia_and_harfbuzz: compile w/ Android NDK
authorhalcanary <halcanary@google.com>
Thu, 12 May 2016 17:09:58 +0000 (10:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 May 2016 17:09:58 +0000 (10:09 -0700)
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

tools/using_skia_and_harfbuzz.cpp

index 86c9accd33212ae65229da4f1b10297dad54b4ad..1694e962e0e438a3a86617fd5295ac0b9c2e3baf 100644 (file)
@@ -9,9 +9,11 @@
 // produce a PDF file from UTF-8 text in stdin.
 
 #include <cassert>
+#include <cstdlib>
 #include <iostream>
 #include <map>
 #include <string>
+#include <sstream>
 
 #include <hb-ot.h>
 
@@ -46,7 +48,9 @@ struct DoubleOption : Option<double> {
     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<double>(selector, description, defaultValue) {}