"correct" preprocessor define for emscripten detection

This commit is contained in:
Gwenhael Le Moine 2022-03-23 09:54:26 +01:00
parent 770cec06d9
commit e5ffbe65ba
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -652,7 +652,7 @@ void mainloop()
currentTime = SDL_GetTicks();
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
currentTime_emu = currentTime;
emuframecount = 0;
@ -725,7 +725,7 @@ void mainloop()
if(refreshSDL() == FALSE)
{
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
printf("emscripten_cancel_main_loop\n");
emscripten_cancel_main_loop();
#endif
@ -744,7 +744,7 @@ int main (int argc, char *argv[])
//start_timers();
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
printf("emscripten_set_main_loop\n");
emscripten_set_main_loop(mainloop, 0, 1);
@ -757,7 +757,7 @@ int main (int argc, char *argv[])
#endif
/*
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
printf("emscripten_set_main_loop\n");
emscripten_set_main_loop(mainloop, 1000, 1);
#else