pilibrary win
git-svn-id: svn://db.shs.com.ru/pip@14 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -75,7 +75,7 @@ void * PILibrary::resolve(const char * symbol) {
|
|||||||
if (!isLoaded()) return 0;
|
if (!isLoaded()) return 0;
|
||||||
void * ret;
|
void * ret;
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
ret = GetProcAddress(PRIVATE->hLib, symbol);
|
ret = (void*)GetProcAddress(PRIVATE->hLib, symbol);
|
||||||
#else
|
#else
|
||||||
ret = dlsym(PRIVATE->hLib, symbol);
|
ret = dlsym(PRIVATE->hLib, symbol);
|
||||||
#endif
|
#endif
|
||||||
@@ -99,6 +99,7 @@ bool PILibrary::loadInternal() {
|
|||||||
|
|
||||||
void PILibrary::getLastError() {
|
void PILibrary::getLastError() {
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
|
liberror = errorString();
|
||||||
#else
|
#else
|
||||||
char * e = dlerror();
|
char * e = dlerror();
|
||||||
if (e) liberror = e;
|
if (e) liberror = e;
|
||||||
|
|||||||
Reference in New Issue
Block a user