aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-04 13:37:24 +0000
committerGravatar halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-04 13:37:24 +0000
commitd8854adf1cc80eb0eb1d0f672b0852772c49e40b (patch)
treef6dd312eeebbafb9c7c46d7d97205c2865d9dc40
parent70bd4bc092c7b5e49db54c1e95b61b0b2e0017d9 (diff)
Fix iOS build of test_image_decoder
Use tool_main() function. Review URL: https://codereview.chromium.org/26008002 git-svn-id: http://skia.googlecode.com/svn/trunk@11600 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tools/test_image_decoder.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/test_image_decoder.cpp b/tools/test_image_decoder.cpp
index 2ba89aaee3..6c3556b993 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