Skip to content

Commit

Permalink
EMSCRIPTEN -> __EMSCRIPTEN__
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 9, 2014
1 parent 996cd15 commit ce3ff5a
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions test/checkkeys.c
Expand Up @@ -19,7 +19,7 @@
#include <stdlib.h>
#include <string.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -195,7 +195,7 @@ main(int argc, char *argv[])
/* Watch keystrokes */
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/loopwave.c
Expand Up @@ -24,7 +24,7 @@
#include <signal.h>
#endif

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -143,7 +143,7 @@ main(int argc, char *argv[])
/* Let the audio run */
SDL_PauseAudio(0);

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done && (SDL_GetAudioStatus() == SDL_AUDIO_PLAYING))
Expand Down
4 changes: 2 additions & 2 deletions test/testdraw2.c
Expand Up @@ -16,7 +16,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -276,7 +276,7 @@ main(int argc, char *argv[])
then = SDL_GetTicks();
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testdrawchessboard.c
Expand Up @@ -17,7 +17,7 @@
#include <stdlib.h>
#include <stdio.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -116,7 +116,7 @@ main(int argc, char *argv[])

/* Draw the Image on rendering surface */
done = 0;
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testgesture.c
Expand Up @@ -22,7 +22,7 @@
#include "SDL_touch.h"
#include "SDL_gesture.h"

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -316,7 +316,7 @@ int main(int argc, char* argv[])
return 1;
}

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while(!quitting) {
Expand Down
4 changes: 2 additions & 2 deletions test/testgles2.c
Expand Up @@ -14,7 +14,7 @@
#include <string.h>
#include <math.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -686,7 +686,7 @@ main(int argc, char *argv[])
then = SDL_GetTicks();
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testintersections.c
Expand Up @@ -16,7 +16,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -335,7 +335,7 @@ main(int argc, char *argv[])
then = SDL_GetTicks();
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
6 changes: 3 additions & 3 deletions test/testoverlay2.c
Expand Up @@ -20,7 +20,7 @@
#include <stdio.h>
#include <string.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -277,7 +277,7 @@ loop()
}
}

#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
SDL_Delay(fpsdelay);
#endif

Expand Down Expand Up @@ -451,7 +451,7 @@ main(int argc, char **argv)
SDL_EventState(SDL_KEYUP, SDL_IGNORE);

/* Loop, waiting for QUIT or RESIZE */
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, nodelay ? 0 : fps, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testrendercopyex.c
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -204,7 +204,7 @@ main(int argc, char *argv[])
then = SDL_GetTicks();
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testrendertarget.c
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -305,7 +305,7 @@ main(int argc, char *argv[])
then = SDL_GetTicks();
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testscale.c
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -194,7 +194,7 @@ main(int argc, char *argv[])
then = SDL_GetTicks();
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testsprite2.c
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -374,7 +374,7 @@ main(int argc, char *argv[])
then = SDL_GetTicks();
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/testspriteminimal.c
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -174,7 +174,7 @@ main(int argc, char *argv[])
/* Main render loop */
done = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
4 changes: 2 additions & 2 deletions test/teststreaming.c
Expand Up @@ -18,7 +18,7 @@
#include <stdlib.h>
#include <stdio.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -167,7 +167,7 @@ main(int argc, char **argv)
/* Loop, waiting for QUIT or the escape key */
frame = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down
8 changes: 4 additions & 4 deletions test/testviewport.c
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <time.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand All @@ -28,7 +28,7 @@ static SDLTest_CommonState *state;
SDL_Rect viewport;
int done, j;
SDL_bool use_target = SDL_FALSE;
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
Uint32 wait_start;
#endif

Expand Down Expand Up @@ -91,7 +91,7 @@ DrawOnViewport(SDL_Renderer * renderer, SDL_Rect viewport)
void
loop()
{
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
/* Avoid using delays */
if(SDL_GetTicks() - wait_start < 1000)
return;
Expand Down Expand Up @@ -187,7 +187,7 @@ main(int argc, char *argv[])
done = 0;
j = 0;

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
wait_start = SDL_GetTicks();
emscripten_set_main_loop(loop, 0, 1);
#else
Expand Down
4 changes: 2 additions & 2 deletions test/testwm2.c
Expand Up @@ -13,7 +13,7 @@
#include <stdlib.h>
#include <stdio.h>

#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

Expand Down Expand Up @@ -137,7 +137,7 @@ main(int argc, char *argv[])

/* Main render loop */
done = 0;
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
Expand Down

0 comments on commit ce3ff5a

Please sign in to comment.