diff options
author | Euan <euantorano@users.noreply.github.com> | 2019-09-06 11:57:38 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-09-06 12:57:38 +0200 |
commit | 24f52d855cf7ffc5de0ae021fa4043eb357c7e72 (patch) | |
tree | 0f964f6e43acddb4ca360c012f53249ec0dbcfba /tests/niminaction/Chapter8/sdl | |
parent | 32769c478bb15bb7b290992a85dbea702dbc1f95 (diff) | |
download | Nim-24f52d855cf7ffc5de0ae021fa4043eb357c7e72.tar.gz |
#12141 Define SDL lib name for OpenBSD and FreeBSD (#12143)
* Define SDL lib name for OpenBSD and FreeBSD * Merge Linux and FreeBSD definitions
Diffstat (limited to 'tests/niminaction/Chapter8/sdl')
-rw-r--r-- | tests/niminaction/Chapter8/sdl/sdl.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/niminaction/Chapter8/sdl/sdl.nim b/tests/niminaction/Chapter8/sdl/sdl.nim index a1b30281b..14fa59c85 100644 --- a/tests/niminaction/Chapter8/sdl/sdl.nim +++ b/tests/niminaction/Chapter8/sdl/sdl.nim @@ -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 |