From 2e19b2577a78975e0842347f18a1405c48f8a5ed Mon Sep 17 00:00:00 2001 From: Ankith Date: Sat, 2 Nov 2024 16:27:59 +0530 Subject: [PATCH] Port scap.c to SDL3 --- src_c/meson.build | 4 ---- src_c/scrap.c | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src_c/meson.build b/src_c/meson.build index dd63495509..8cae8145a6 100644 --- a/src_c/meson.build +++ b/src_c/meson.build @@ -394,9 +394,6 @@ _camera = py.extension_module( endif # pygame.scrap - -# TODO: support SDL3 -if sdl_api != 3 pg_scrap_link = [] # TODO: should this link logic be improved/made meson-ey? if plat == 'win' pg_scrap_link += ['-luser32', '-lgdi32'] @@ -411,7 +408,6 @@ scrap = py.extension_module( install: true, subdir: pg, ) -endif # optional modules diff --git a/src_c/scrap.c b/src_c/scrap.c index ef580e7a99..eb1a95f4b5 100644 --- a/src_c/scrap.c +++ b/src_c/scrap.c @@ -27,9 +27,8 @@ #include #else #include -#endif - #include "SDL_syswm.h" +#endif #include "pygame.h"