fixes DLL hell on Windows

This commit is contained in:
Araq 2015-09-05 12:03:53 +02:00
commit 0320c0c73b
5 changed files with 41 additions and 7 deletions

View file

@ -42,8 +42,14 @@ pdcwin.h:
when defined(windows):
import windows
when defined(nimOldDlls):
const pdcursesdll = "pdcurses.dll"
elif defined(cpu64):
const pdcursesdll = "pdcurses64.dll"
else:
const pdcursesdll = "pdcurses32.dll"
const
pdcursesdll = "pdcurses.dll"
unixOS = false
{.pragma: extdecl, stdcall.}