sdl3/sdl3-features.scm

10 lines
276 B
Scheme
Raw Normal View History

2024-09-22 21:46:26 +00:00
(define-library (sdl3 features)
(import (scheme)
(chicken foreign))
(begin
(foreign-declare "#include <SDL3/SDL_version.h>")
(register-feature! 'sdl3)
(when (foreign-value "SDL_VERSION_ATLEAST(3,0,0)" bool)
(register-feature! 'sdl3-3.0.0+))))