#12141 Define SDL lib name for OpenBSD and FreeBSD (#12143)

* Define SDL lib name for OpenBSD and FreeBSD

* Merge Linux and FreeBSD definitions
This commit is contained in:
Euan
2019-09-06 11:57:38 +01:00
committed by Andreas Rumpf
parent 32769c478b
commit 24f52d855c

View File

@@ -1,9 +1,13 @@
when defined(Windows):
const libName* = "SDL2.dll"
elif defined(Linux):
elif defined(Linux) or defined(freebsd):
const libName* = "libSDL2.so"
elif defined(MacOsX):
const libName* = "libSDL2.dylib"
elif defined(openbsd):
const libName* = "libSDL2.so.0.6"
else:
{.error: "SDL library name not set for this platform".}
type
SdlWindow = object