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

@ -14,9 +14,15 @@
const useWinVersion = defined(Windows) or defined(nimdoc)
when useWinVersion:
const
DLLSSLName = "(ssleay32|libssl32).dll"
DLLUtilName = "libeay32.dll"
when not defined(nimOldDlls) and defined(cpu64):
const
DLLSSLName = "(ssleay64|libssl64).dll"
DLLUtilName = "libeay64.dll"
else:
const
DLLSSLName = "(ssleay32|libssl32).dll"
DLLUtilName = "libeay32.dll"
from winlean import SocketHandle
else:
const