diff --git a/setup.py b/setup.py index a7e5861021..4393f86a30 100644 --- a/setup.py +++ b/setup.py @@ -962,12 +962,13 @@ def determine_sdl3(): base_flags, sdl3_flags, sdl3_depends, _extra_args ) - sources["core/image/_img_sdl3.pyx"] = merge( - sources["core/image/_img_sdl3.pyx"], - { - "extra_compile_args": ["-Wno-incompatible-function-pointer-types"], - }, - ) + if platform != 'win32': + sources["core/image/_img_sdl3.pyx"] = merge( + sources["core/image/_img_sdl3.pyx"], + { + "extra_compile_args": ["-Wno-incompatible-function-pointer-types"], + }, + ) if c_options['use_pangoft2'] in (None, True) and platform not in ( 'android', 'ios', 'win32'):