X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fextensions.cxx;h=130673c51f92c7654a1ba47c36b865a4ce14c3e5;hb=bbd61977f14c30ce93a2bcf5a3551708d36a29c8;hp=7429c0f54d605cd667417ce362701473376a06e3;hpb=9861d742217e91706ac7b187bafa7b55fe694bd4;p=simgear.git diff --git a/simgear/screen/extensions.cxx b/simgear/screen/extensions.cxx index 7429c0f5..130673c5 100644 --- a/simgear/screen/extensions.cxx +++ b/simgear/screen/extensions.cxx @@ -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); }