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/openal_buffers.c | |
parent | c600155b1fef26a248d6467a89030328db0fedab (diff) |
Use __EMSCRIPTEN__ instead of EMSCRIPTEN in tests.
Diffstat (limited to 'tests/openal_buffers.c')
-rw-r--r-- | tests/openal_buffers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/openal_buffers.c b/tests/openal_buffers.c index 31104a33..df6d8e3f 100644 --- a/tests/openal_buffers.c +++ b/tests/openal_buffers.c @@ -1,7 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <assert.h> -#ifdef EMSCRIPTEN +#ifdef __EMSCRIPTEN__ #include <emscripten.h> #include <AL/al.h> #include <AL/alc.h> @@ -68,7 +68,7 @@ void iter() { // Exit once we've processed the entire clip. if (offset >= size) { -#ifdef EMSCRIPTEN +#ifdef __EMSCRIPTEN__ int result = 0; REPORT_RESULT(); #endif @@ -87,7 +87,7 @@ int main(int argc, char* argv[]) { // // Read in the audio sample. // -#ifdef EMSCRIPTEN +#ifdef __EMSCRIPTEN__ FILE* fp = fopen("the_entertainer.wav", "rb"); #else FILE* fp = fopen("sounds/the_entertainer.wav", "rb"); @@ -176,7 +176,7 @@ int main(int argc, char* argv[]) { // // Cycle and refill the buffers until we're done. // -#if EMSCRIPTEN +#ifdef __EMSCRIPTEN__ emscripten_set_main_loop(iter, 0, 0); #else while (1) { |