aboutsummaryrefslogtreecommitdiff
path: root/tests/sockets/test_enet_client.c
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-08-23 18:12:02 -0700
committerAnthony Pesch <inolen@gmail.com>2013-08-23 18:12:19 -0700
commit63e5aee15fae754383edfd9f3faa5b161efeeef3 (patch)
tree07a60570c381ef60cf27a8082e2fa2c588574854 /tests/sockets/test_enet_client.c
parent51278aa1eb63648b883d93102bc7126e8fb123b1 (diff)
add USE_IFRAME define to support compiled servers
Diffstat (limited to 'tests/sockets/test_enet_client.c')
-rw-r--r--tests/sockets/test_enet_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sockets/test_enet_client.c b/tests/sockets/test_enet_client.c
index bf14375c..afcdcae8 100644
--- a/tests/sockets/test_enet_client.c
+++ b/tests/sockets/test_enet_client.c
@@ -93,6 +93,7 @@ int main (int argc, char ** argv)
}
#if EMSCRIPTEN
+#if USE_IFRAME
emscripten_run_script("console.log('adding iframe');"
"var iframe = document.createElement('iframe');"
"iframe.src = 'server.html';"
@@ -101,6 +102,7 @@ int main (int argc, char ** argv)
"document.body.appendChild(iframe);"
"console.log('added.');");
#endif
+#endif
#if EMSCRIPTEN
emscripten_set_main_loop(main_loop, 3, 1);