OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // The entry point for all Mac Chromium processes, including the outer app | 5 // The entry point for all Mac Chromium processes, including the outer app |
6 // bundle (browser) and helper app (renderer, plugin, and friends). | 6 // bundle (browser) and helper app (renderer, plugin, and friends). |
7 | 7 |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 | 9 |
10 extern "C" { | 10 extern "C" { |
11 int ChromeMain(int argc, char** argv); | 11 int ChromeMain(int argc, char** argv); |
12 } | 12 } |
13 | 13 |
| 14 __attribute__((visibility("default"))) |
14 int main(int argc, char* argv[]) { | 15 int main(int argc, char* argv[]) { |
15 int rv = ChromeMain(argc, argv); | 16 int rv = ChromeMain(argc, argv); |
16 | 17 |
17 // exit, don't return from main, to avoid the apparent removal of main from | 18 // exit, don't return from main, to avoid the apparent removal of main from |
18 // stack backtraces under tail call optimization. | 19 // stack backtraces under tail call optimization. |
19 exit(rv); | 20 exit(rv); |
20 } | 21 } |
OLD | NEW |