Skip to content

Commit 8caa369

Browse files
committed
Fix ifdefs
1 parent c203f6c commit 8caa369

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/SDL_test_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ bool SDLTest_CommonInit(SDLTest_CommonState *state)
13991399
if (state->num_windows > 1) {
14001400
(void)SDL_snprintf(title, SDL_arraysize(title), "%s %d",
14011401
state->window_title, i + 1);
1402-
#if SDL_PLATFORM_EMSCRIPTEN
1402+
#ifdef SDL_PLATFORM_EMSCRIPTEN
14031403
if (i != 0) {
14041404
char id[64];
14051405
SDL_snprintf(id, sizeof(id), "#canvas%d", i + 1);

src/video/SDL_video.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,7 +2648,7 @@ bool SDL_RecreateWindow(SDL_Window *window, SDL_WindowFlags flags)
26482648

26492649
// Don't actually recreate the window in Emscripten because the SDL_WindowData's
26502650
// canvas_id and keyboard_element would be lost if destroyed
2651-
#if !SDL_PLATFORM_EMSCRIPTEN
2651+
#ifndef SDL_PLATFORM_EMSCRIPTEN
26522652
if (_this->DestroyWindow && !(flags & SDL_WINDOW_EXTERNAL)) {
26532653
_this->DestroyWindow(_this, window);
26542654
}
@@ -2680,7 +2680,7 @@ bool SDL_RecreateWindow(SDL_Window *window, SDL_WindowFlags flags)
26802680
window->w = window->windowed.w = window->floating.w;
26812681
window->h = window->windowed.h = window->floating.h;
26822682

2683-
#if SDL_PLATFORM_EMSCRIPTEN
2683+
#ifdef SDL_PLATFORM_EMSCRIPTEN
26842684
// Prevent -Wunused-but-set-variable
26852685
(void)loaded_opengl;
26862686
(void)loaded_vulkan;
@@ -2727,7 +2727,7 @@ bool SDL_RecreateWindow(SDL_Window *window, SDL_WindowFlags flags)
27272727
_this->SetWindowHitTest(window, true);
27282728
}
27292729

2730-
#if !SDL_PLATFORM_EMSCRIPTEN
2730+
#ifndef SDL_PLATFORM_EMSCRIPTEN
27312731
SDL_FinishWindowCreation(window, flags);
27322732
#endif
27332733

0 commit comments

Comments
 (0)