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

@ -310,7 +310,12 @@ type
when not defined(usePcreHeader):
when hostOS == "windows":
const pcreDll = "pcre.dll"
when defined(nimOldDlls):
const pcreDll = "pcre.dll"
elif defined(cpu64):
const pcreDll = "pcre64.dll"
else:
const pcreDll = "pcre32.dll"
elif hostOS == "macosx":
const pcreDll = "libpcre(.3|.1|).dylib"
else: