diff options
Diffstat (limited to 'tests/sockets/webrtc_host.c')
-rw-r--r-- | tests/sockets/webrtc_host.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sockets/webrtc_host.c b/tests/sockets/webrtc_host.c index 866c875c..e482d4ae 100644 --- a/tests/sockets/webrtc_host.c +++ b/tests/sockets/webrtc_host.c @@ -9,7 +9,7 @@ #include <unistd.h> #include <sys/ioctl.h> #include <assert.h> -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif @@ -37,7 +37,7 @@ void iter() { shutdown(sock, SHUT_RDWR); close(sock); -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ int result = 1; REPORT_RESULT(); exit(EXIT_SUCCESS); @@ -79,7 +79,7 @@ int main(void) hdr.msg_iov = iov; hdr.msg_iovlen = 1; -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ emscripten_set_main_loop(iter, 0, 0); #else while (!done) iter(); |