summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src
diff options
context:
space:
mode:
authornoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 04:57:29 +0000
committernoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 04:57:29 +0000
commit2880fead64e8a91c0d0455472de395be24c13a2a (patch)
treebc09ae6fdaf57a7c8a43d2e690b5675bdb7837f1 /native_client_sdk/src
parente08eb7a90ba5dcd9f7d4e41832b9117f6f7c7221 (diff)
downloadchromium_src-2880fead64e8a91c0d0455472de395be24c13a2a.zip
chromium_src-2880fead64e8a91c0d0455472de395be24c13a2a.tar.gz
chromium_src-2880fead64e8a91c0d0455472de395be24c13a2a.tar.bz2
Fix missing declaration.
Windows was printing an about a missing double quote, probably due to the macro definition of the toolchain: -DTCNAME=\"newlib\" This CL is the second part of the fix which was lost due to out of order checkins. TBR=binji@chromium.org Review URL: https://chromiumcodereview.appspot.com/10543173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src')
-rw-r--r--native_client_sdk/src/examples/hello_world/hello_world.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/native_client_sdk/src/examples/hello_world/hello_world.c b/native_client_sdk/src/examples/hello_world/hello_world.c
index 79ecc75..80dbe21 100644
--- a/native_client_sdk/src/examples/hello_world/hello_world.c
+++ b/native_client_sdk/src/examples/hello_world/hello_world.c
@@ -22,6 +22,20 @@
#include "ppapi/c/ppp_instance.h"
#include "ppapi/c/ppp_messaging.h"
+enum {
+ newlib = 0,
+ glibc = 1,
+ pnacl = 2,
+ host = 3,
+ TCMAX
+};
+
+static const char *s_TCNames[TCMAX] = {
+ "Hello World (newlib)!",
+ "Hello World (glibc)!",
+ "Hello World (pnacl)!",
+ "Hello World (host plugin)!",
+};
static PPB_Messaging* ppb_messaging_interface = NULL;
static PPB_Var* ppb_var_interface = NULL;
@@ -69,7 +83,7 @@ static PP_Bool Instance_DidCreate(PP_Instance instance,
const char* argn[],
const char* argv[]) {
ppb_messaging_interface->PostMessage(instance,
- CStrToVar("Hello World: " TCNAME));
+ CStrToVar(s_TCNames[TCNAME]));
return PP_TRUE;
}