Index: tools/flags/SkCommandLineFlags.cpp |
diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp |
index fe3dfd193d08bf171ab0ecbabed141292c519ede..2fe7824c84e465e652648500e5cfe2c684a80120 100644 |
--- a/tools/flags/SkCommandLineFlags.cpp |
+++ b/tools/flags/SkCommandLineFlags.cpp |
@@ -11,7 +11,12 @@ |
#include <stdlib.h> |
-DEFINE_bool(undefok, false, "Silently ignore unknown flags instead of crashing."); |
+#if defined(GOOGLE3) && defined(SK_BUILD_FOR_ANDROID) |
+ // I don't know why, but this is defined by //base only for Android. |
+ DECLARE_bool(undefok) |
+#else |
+ DEFINE_bool(undefok, false, "Silently ignore unknown flags instead of crashing."); |
+#endif |
template <typename T> static void ignore_result(const T&) {} |