Merge branch 'ehofman/dlerror' into next
This commit is contained in:
@@ -121,11 +121,7 @@ void *SGGetGLProcAddress(const char *func) {
|
||||
libHandle = dlopen(NULL, RTLD_LAZY);
|
||||
|
||||
if (!libHandle) {
|
||||
#if defined (__FreeBSD__)
|
||||
const char *error = dlerror();
|
||||
#else
|
||||
char *error = dlerror();
|
||||
#endif
|
||||
if (error) {
|
||||
SG_LOG(SG_GENERAL, SG_INFO, error);
|
||||
return 0;
|
||||
@@ -145,11 +141,7 @@ void *SGGetGLProcAddress(const char *func) {
|
||||
} else if (libHandle != NULL) {
|
||||
fptr = dlsym(libHandle, func);
|
||||
|
||||
#if defined (__FreeBSD__)
|
||||
const char *error = dlerror();
|
||||
#else
|
||||
char *error = dlerror();
|
||||
#endif
|
||||
if (error)
|
||||
SG_LOG(SG_GENERAL, SG_INFO, error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user