Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index d149b484a8776f69ee30f7ed0ca24cfce58024b3..aca4986a25640d27c4d10c1ed7c83149922fc073 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -129,8 +129,8 @@ public: |
} |
}; |
- |
-int main(int argc, char** argv) { |
+int tool_main(int argc, char** argv); |
+int tool_main(int argc, char** argv) { |
SkGraphics::Init(); |
SkCommandLineFlags::Parse(argc, argv); |
@@ -164,3 +164,9 @@ int main(int argc, char** argv) { |
return reporter.failed() > 0; |
} |
+ |
+#if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
+int main(int argc, char** argv) { |
+ return tool_main(argc, argv); |
+} |
+#endif |