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

Unified Diff: native_client_sdk/src/examples/tutorial/using_ppapi_simple/hello_world.c

Issue 412083002: [NaCl SDK] Allow ppapi_simple executables to run in both sel_ldr and in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: native_client_sdk/src/examples/tutorial/using_ppapi_simple/hello_world.c
diff --git a/native_client_sdk/src/examples/tutorial/using_ppapi_simple/hello_world.c b/native_client_sdk/src/examples/tutorial/using_ppapi_simple/hello_world.c
index 10322d01b0fb2e6aaec3d7fd5c3789b707c8eb56..31e88fa515990375250a7b06a78c2169b29a8af7 100644
--- a/native_client_sdk/src/examples/tutorial/using_ppapi_simple/hello_world.c
+++ b/native_client_sdk/src/examples/tutorial/using_ppapi_simple/hello_world.c
@@ -8,10 +8,6 @@
#include "ppapi_simple/ps_main.h"
-#ifdef SEL_LDR
-#define example_main main
-#endif
-
int example_main(int argc, char* argv[]) {
/* Use ppb_messaging to send "Hello World" to JavaScript. */
printf("Hello World STDOUT.\n");
@@ -28,6 +24,4 @@ int example_main(int argc, char* argv[]) {
* This is not needed when building the sel_ldr version of this example
* which does not link against ppapi_simple.
*/
-#ifndef SEL_LDR
PPAPI_SIMPLE_REGISTER_MAIN(example_main)
-#endif
« no previous file with comments | « native_client_sdk/src/examples/tutorial/testing/testing.cc ('k') | native_client_sdk/src/libraries/ppapi_simple/ps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698