* Define SDL lib name for OpenBSD and FreeBSD * Merge Linux and FreeBSD definitions
This commit is contained in:
parent
32769c478b
commit
24f52d855c
1 changed files with 5 additions and 1 deletions
|
|
@ -1,9 +1,13 @@
|
||||||
when defined(Windows):
|
when defined(Windows):
|
||||||
const libName* = "SDL2.dll"
|
const libName* = "SDL2.dll"
|
||||||
elif defined(Linux):
|
elif defined(Linux) or defined(freebsd):
|
||||||
const libName* = "libSDL2.so"
|
const libName* = "libSDL2.so"
|
||||||
elif defined(MacOsX):
|
elif defined(MacOsX):
|
||||||
const libName* = "libSDL2.dylib"
|
const libName* = "libSDL2.dylib"
|
||||||
|
elif defined(openbsd):
|
||||||
|
const libName* = "libSDL2.so.0.6"
|
||||||
|
else:
|
||||||
|
{.error: "SDL library name not set for this platform".}
|
||||||
|
|
||||||
type
|
type
|
||||||
SdlWindow = object
|
SdlWindow = object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue