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

Unified Diff: native_client_sdk/src/examples/hello_world_stdio/hello_world.c

Issue 11725003: Update make for hello examples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/hello_world_stdio/hello_world.c
diff --git a/native_client_sdk/src/examples/hello_world_stdio/hello_world.c b/native_client_sdk/src/examples/hello_world_stdio/hello_world.c
index 0d2faf14b5de91858d687f128bf742e387c2628d..9c6781c8394051b5b3d7bb0e275c76c112a1a573 100644
--- a/native_client_sdk/src/examples/hello_world_stdio/hello_world.c
+++ b/native_client_sdk/src/examples/hello_world_stdio/hello_world.c
@@ -35,6 +35,7 @@ int ppapi_main(int argc, const char *argv[]) {
// Use PostMessage to send "Hello World" to JavaScript.
printf("Hello World STDIO.\n");
+ fflush(stdout);
// Use PPAPI Console interface to send "Hello World" to the
// JavaScript Console.
@@ -46,5 +47,6 @@ int ppapi_main(int argc, const char *argv[]) {
printf(" ARGS: %s=%s\n", argv[index+0], argv[index+1]);
index += 2;
}
+ flush(stdout);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698