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

Unified Diff: ports/alut-demo/alut_hello_world.c

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
« no previous file with comments | « ports/alut-demo/Makefile ('k') | ports/alut-demo/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/alut-demo/alut_hello_world.c
diff --git a/ports/alut-demo/alut_hello_world.c b/ports/alut-demo/alut_hello_world.c
index 60b46c27369059328c189506f5190e3ae459b6e7..9733793b3799c32b573b502368bc67482f1ad406 100644
--- a/ports/alut-demo/alut_hello_world.c
+++ b/ports/alut-demo/alut_hello_world.c
@@ -2,8 +2,8 @@
#include <stdio.h>
#include <AL/alut.h>
-#include <ppapi_simple/ps_main.h>
#include <ppapi/c/ppb.h>
+#include <ppapi_simple/ps.h>
/*
This is the 'Hello World' program from the ALUT
@@ -14,7 +14,7 @@
void alSetPpapiInfo(PP_Instance instance, PPB_GetInterface get_interface);
-int nacl_main(int argc, char** argv) {
+int main(int argc, char** argv) {
ALuint helloBuffer, helloSource;
/*
@@ -32,5 +32,3 @@ int nacl_main(int argc, char** argv) {
alutExit();
return EXIT_SUCCESS;
}
-
-PPAPI_SIMPLE_REGISTER_MAIN(nacl_main)
« no previous file with comments | « ports/alut-demo/Makefile ('k') | ports/alut-demo/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698