(in-package :sdl2)

(defctype sdl2-ffi::size-t :unsigned-int)

(define-foreign-library libsdl2
  (t (:default "libSDL2")))

#+-(use-foreign-library libsdl2)

(in-package :sdl2)

(defctype sdl2-ffi::size-t :unsigned-int)

(define-foreign-library libsdl2
  (:unix (:or "libSDL2-2.0.so.0" "libSDL2"))
  (t (:default "libSDL2")))

(use-foreign-library libsdl2)

Load using specific SONAME in :unix
Load using specific SONAME in :unix

lispgames/cl-sdl2,lispgames/cl-sdl2,zombie-raptor/cl-sdl2,zombie-raptor/cl-sdl2