Skip to content

Commit ff50b65

Browse files
committed
Buildfix
1 parent 3fe82fb commit ff50b65

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

gfx/font_driver.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ static bool font_init_first(
160160
}
161161
}
162162
#endif
163-
#if defined(HAVE_SDL2) && SDL_VERSION_ATLEAST(2, 0, 18)
163+
#ifdef HAVE_SDL2
164+
#if SDL_VERSION_ATLEAST(2, 0, 18)
164165
case FONT_DRIVER_RENDER_SDL2:
165166
{
166167
void *data = sdl2_raster_font.init(video_data,
@@ -174,6 +175,7 @@ static bool font_init_first(
174175
}
175176
break;
176177
#endif
178+
#endif
177179
#ifdef HAVE_D3D8
178180
case FONT_DRIVER_RENDER_D3D8_API:
179181
{

gfx/gfx_display.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ static gfx_display_ctx_driver_t *gfx_display_ctx_drivers[] = {
111111
&gfx_display_ctx_gdi,
112112
#endif
113113
#endif
114-
#if defined(HAVE_SDL2) && SDL_VERSION_ATLEAST(2, 0, 18)
114+
#ifdef HAVE_SDL2
115+
#if SDL_VERSION_ATLEAST(2, 0, 18)
115116
&gfx_display_ctx_sdl2,
117+
#endif
116118
#endif
117119
NULL,
118120
};

0 commit comments

Comments
 (0)