mirror of
https://github.com/nim-lang/Nim.git
synced 2026-03-03 23:28:31 +00:00
Fixed xrender.nim for use_pkg_config
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
import
|
||||
x, xlib
|
||||
|
||||
when defined(pkclibx):
|
||||
{.passl: gorge("pkg-config xrender --libs").}
|
||||
when defined(use_pkg_config) or defined(use_pkg_config_static):
|
||||
{.pragma: libxrender, cdecl, importc.}
|
||||
when defined(use_pkg_config):
|
||||
{.passl: gorge("pkg-config xrender --libs").}
|
||||
else:
|
||||
{.passl: gorge("pkg-config xrender --static --libs").}
|
||||
else:
|
||||
when defined(macosx):
|
||||
const
|
||||
|
||||
Reference in New Issue
Block a user