Fixed xrender.nim for use_pkg_config

This commit is contained in:
Yury Benesh
2013-07-09 23:30:11 +03:00
parent 3c9864c9d3
commit f54cb2e323

View File

@@ -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