Skip to content

Commit

Permalink
Remove usages of restrict keyword in SDL_render.c
Browse files Browse the repository at this point in the history
I ran into the usage of `restrict` breaking builds targeting Windows XP, as the v141 MSVC toolset doesn't support the keyword.
  • Loading branch information
nightmareci authored and slouken committed Feb 18, 2025
1 parent a7f01cd commit 7500a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/SDL_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -2787,7 +2787,7 @@ static void SDL_RenderLogicalPresentation(SDL_Renderer *renderer)
}
}

static bool SDL_RenderVectorFromWindow(SDL_Renderer *renderer, float window_dx, float window_dy, float *restrict dx, float *restrict dy)
static bool SDL_RenderVectorFromWindow(SDL_Renderer *renderer, float window_dx, float window_dy, float *dx, float *dy)
{
// Convert from window coordinates to pixels within the window
window_dx *= renderer->dpi_scale.x;
Expand Down

0 comments on commit 7500a75

Please sign in to comment.