diff options
Diffstat (limited to 'tools/skdiff_main.cpp')
-rw-r--r-- | tools/skdiff_main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/skdiff_main.cpp b/tools/skdiff_main.cpp index 5fbf3ff515..46d4f006a4 100644 --- a/tools/skdiff_main.cpp +++ b/tools/skdiff_main.cpp @@ -1270,7 +1270,8 @@ static void usage (char * argv0) { const int kNoError = 0; const int kGenericError = -1; -int main (int argc, char ** argv) { +int tool_main(int argc, char** argv); +int tool_main(int argc, char** argv) { DiffMetricProc diffProc = compute_diff_pmcolor; int (*sortProc)(const void*, const void*) = compare<CompareDiffMetrics>; @@ -1446,3 +1447,9 @@ int main (int argc, char ** argv) { // make sure that we only return 0 when there were no failures. return (num_failing_results > 255) ? 255 : num_failing_results; } + +#if !defined SK_BUILD_FOR_IOS +int main(int argc, char * const argv[]) { + return tool_main(argc, (char**) argv); +} +#endif |