Skip to content

Commit 3a17e5f

Browse files
committed
Changed platform detection code.
1 parent 4a47d97 commit 3a17e5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdl3/SDL_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
SDL_SET_CURRENT_DLL(SDL_DLL)
77

8-
if "win32" in sys.platform:
8+
if sys.platform in ["win32"]:
99
import ctypes.wintypes as wintypes
1010

1111
MSG = wintypes.tagMSG
@@ -21,7 +21,7 @@ class XEvent(ctypes.Union):
2121
SDL_X11EventHook = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p, ctypes.POINTER(XEvent))
2222
SDL_FUNC("SDL_SetX11EventHook", None, SDL_X11EventHook, ctypes.c_void_p)
2323

24-
if "linux" in sys.platform:
24+
if sys.platform in ["linux"]:
2525
SDL_FUNC("SDL_SetLinuxThreadPriority", ctypes.c_bool, ctypes.c_int64, ctypes.c_int)
2626
SDL_FUNC("SDL_SetLinuxThreadPriorityAndPolicy", ctypes.c_bool, ctypes.c_int64, ctypes.c_int, ctypes.c_int)
2727

0 commit comments

Comments
 (0)