mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* Define SDL lib name for OpenBSD and FreeBSD * Merge Linux and FreeBSD definitions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user