We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b5e30 commit bf077c7Copy full SHA for bf077c7
tcod/cffi.py
@@ -17,16 +17,17 @@
17
18
REQUIRED_SDL_VERSION = (3, 2, 0)
19
20
-ffi_check = cffi.FFI()
21
-ffi_check.cdef(
22
- """
23
-int SDL_GetVersion(void);
24
-"""
25
-)
26
-
27
28
def verify_dependencies() -> None:
29
"""Try to make sure dependencies exist on this system."""
+ if sys.platform == "emscripten":
+ return
+ ffi_check = cffi.FFI()
+ ffi_check.cdef(
+ """
+ int SDL_GetVersion(void);
30
+ )
31
if sys.platform == "win32":
32
lib_test: Any = ffi_check.dlopen("SDL3.dll") # Make sure SDL3.dll is here.
33
int_version = lib_test.SDL_GetVersion() # Need to check this version.
0 commit comments