Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1854)

Unified Diff: dm/DM.cpp

Issue 26468005: Fix DM build failures. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: declare tool_main Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMCpuTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | dm/DMCpuTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698