diff options
author | Dan Gohman <sunfish@google.com> | 2014-02-24 08:46:38 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@google.com> | 2014-02-25 11:58:53 -0800 |
commit | 3317f2cd793893073619a87a462da26c505ba9eb (patch) | |
tree | 89929a716269220d19aa3c4b6d2cd8bbe13343b7 /tests/sockets/test_enet_server.c | |
parent | c600155b1fef26a248d6467a89030328db0fedab (diff) |
Use __EMSCRIPTEN__ instead of EMSCRIPTEN in tests.
Diffstat (limited to 'tests/sockets/test_enet_server.c')
-rw-r--r-- | tests/sockets/test_enet_server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/sockets/test_enet_server.c b/tests/sockets/test_enet_server.c index 9a4518ac..30d86a99 100644 --- a/tests/sockets/test_enet_server.c +++ b/tests/sockets/test_enet_server.c @@ -4,7 +4,7 @@ #include <string.h> #include <enet/enet.h> -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif @@ -29,12 +29,12 @@ void send_msg(ENetPeer *peer) { void main_loop() { static int counter = 0; -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ counter++; #endif if (counter == 100) { printf("stop!\n"); -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ emscripten_cancel_main_loop(); #endif return; @@ -101,7 +101,7 @@ int main (int argc, char ** argv) exit (EXIT_FAILURE); } -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ emscripten_set_main_loop(main_loop, 3, 1); #else while (1) main_loop(); |