(void) DefaultDriverName;
+#if defined(_EGL_PLATFORM_X)
/* First, if the EGL_DRIVER env var is set, use that */
driverName = getenv("EGL_DRIVER");
if (driverName)
return _eglstrdup(driverName);
+#endif
#if 0
if (!displayString) {
#if defined(_EGL_PLATFORM_WINDOWS)
/* Use static linking on Windows for now */
-#ifdef WINDOWS_STATIC_LINK
+#ifdef WINDOWS_STATIC_LINK
+ lib = 0;
mainFunc = (_EGLMain_t)_eglMain;
#else
/* XXX untested */
static void
log_level_initialize(void)
{
+#if defined(_EGL_PLATFORM_X)
char *log_env = getenv("EGL_LOG_LEVEL");
+#else
+ char *log_env = NULL;
+#endif
if (log_env == NULL) {
ReportingLevel = FALLBACK_LOG_LEVEL;