There were some refactorings with the addition of EGL_DRIVERS_PATH.
They made some platform #ifdef's unnecessary.
static EGLBoolean
_eglPreloadUserDriver(void)
{
-#if defined(_EGL_PLATFORM_POSIX) || defined(_EGL_PLATFORM_WINDOWS)
const char *search_path = _eglGetSearchPath();
char *env;
}
return EGL_TRUE;
-#else /* _EGL_PLATFORM_POSIX || _EGL_PLATFORM_WINDOWS */
- return EGL_FALSE;
-#endif
}
static EGLBoolean
_eglPreloadDisplayDrivers(void)
{
-#if defined(_EGL_PLATFORM_POSIX)
const char *dpy;
char prefix[32];
int ret;
return (_eglPreloadForEach(_eglGetSearchPath(),
_eglPreloadPattern, (void *) prefix) > 0);
-#else /* _EGL_PLATFORM_POSIX */
- return EGL_FALSE;
-#endif
}