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

Unified Diff: ports/blackbox/nacl.patch

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 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
Index: ports/blackbox/nacl.patch
diff --git a/ports/blackbox/nacl.patch b/ports/blackbox/nacl.patch
index a764958891bebda24606157f85f7367569cc08f8..cc27fea129a151843a8ad0af894581e3b908833c 100644
--- a/ports/blackbox/nacl.patch
+++ b/ports/blackbox/nacl.patch
@@ -316,18 +316,6 @@ diff --git a/src/main.cc b/src/main.cc
static void showHelp(int exitval) {
-@@ -72,6 +74,11 @@ static void showHelp(int exitval) {
- ::exit(exitval);
- }
-
-+#if defined(__native_client__)
-+#include "nacl_main.h"
-+#define main nacl_main
-+#endif
-+
- int main(int argc, char **argv) {
- const char *dpy_name = 0;
- std::string rc_file;
diff --git a/util/Makefile.in b/util/Makefile.in
--- a/util/Makefile.in
+++ b/util/Makefile.in
@@ -356,29 +344,3 @@ diff --git a/util/bsetroot.cc b/util/bsetroot.cc
// ignore all X errors
-@@ -339,6 +341,11 @@ void bsetroot::usage(int exit_code) {
- exit(exit_code);
- }
-
-+#if defined(__native_client__)
-+# include "nacl_main.h"
-+# define main nacl_main
-+#endif
-+
- int main(int argc, char **argv) {
- char *display_name = 0;
- bool multi_head = False;
-diff --git a/util/bstyleconvert.cc b/util/bstyleconvert.cc
---- a/util/bstyleconvert.cc
-+++ b/util/bstyleconvert.cc
-@@ -710,6 +710,10 @@ void writeStyle(const std::string &filename, const NewStyle &style)
- }
-
-
-+#if defined(__native_client__)
-+# include "nacl_main.h"
-+# define main nacl_main
-+#endif
-
- int main(int argc, char* argv[]) {
- for (int i = 1; i < argc; ++i) {

Powered by Google App Engine
This is Rietveld 408576698