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

Unified Diff: tools/test_image_decoder.cpp

Issue 26008002: Fix iOS build of test_image_decoder (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test_image_decoder.cpp
diff --git a/tools/test_image_decoder.cpp b/tools/test_image_decoder.cpp
index 2ba89aaee3c0d1dbbfbd8bae76fd2627d7ad902b..6c3556b993383a01c102531d5b35e202b85ec771 100644
--- a/tools/test_image_decoder.cpp
+++ b/tools/test_image_decoder.cpp
@@ -15,7 +15,8 @@ __SK_FORCE_IMAGE_DECODER_LINKING;
/**
Simple program to test Skia's ability to decode images without
errors or debug messages. */
-int main(int argc, char ** argv) {
+int tool_main(int argc, char** argv);
+int tool_main(int argc, char** argv) {
if (argc < 2) {
SkDebugf("Usage:\n %s imagefile\n\n", argv[0]);
return 3;
@@ -30,3 +31,8 @@ int main(int argc, char ** argv) {
return 0;
}
+#if !defined SK_BUILD_FOR_IOS
+int main(int argc, char * const argv[]) {
+ return tool_main(argc, (char**) argv);
+}
+#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698