Skip to content

Commit

Permalink
#12141 Define SDL lib name for OpenBSD and FreeBSD (#12143)
Browse files Browse the repository at this point in the history
* Define SDL lib name for OpenBSD and FreeBSD

* Merge Linux and FreeBSD definitions
  • Loading branch information
euantorano authored and Araq committed Sep 6, 2019
1 parent 32769c4 commit 24f52d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/niminaction/Chapter8/sdl/sdl.nim
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 24f52d8

Please sign in to comment.