From 24f52d855cf7ffc5de0ae021fa4043eb357c7e72 Mon Sep 17 00:00:00 2001 From: Euan Date: Fri, 6 Sep 2019 11:57:38 +0100 Subject: #12141 Define SDL lib name for OpenBSD and FreeBSD (#12143) * Define SDL lib name for OpenBSD and FreeBSD * Merge Linux and FreeBSD definitions --- tests/niminaction/Chapter8/sdl/sdl.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit 1.4.1-2-gfad0