Fix curl dynamic loading on windows

With win-builds.org curl dll name is libcurl-4.dll. Try to load this
correct filename first
This commit is contained in:
Raoul Hecky 2014-06-03 18:09:14 +02:00
parent 732f1c2a1b
commit 06a343afda
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ _c_init(void)
} \
}
#if defined(_WIN32) || defined(__CYGWIN__)
LOAD("libcurl-4.dll"); // try correct dll first
LOAD("libcurl.dll"); // try 1
LOAD("curllib.dll"); // if fail try 2
#elif defined(__APPLE__) && defined(__MACH__)