summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egllog.c
diff options
context:
space:
mode:
authorJonathan White <[email protected]>2008-08-06 16:37:49 -0600
committerBrian Paul <[email protected]>2008-08-06 16:37:49 -0600
commitbd953fdd549310638b6960f358b31a40c05ca680 (patch)
treed44e9975c2a79eb0acdc3f9dc5042d3ad54b1128 /src/egl/main/egllog.c
parent695fc325032f642dea6a10267a57c3d9758bea62 (diff)
egl: fixes for Windows
Diffstat (limited to 'src/egl/main/egllog.c')
-rw-r--r--src/egl/main/egllog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c
index 23eb523eebe..1d7a0a388c6 100644
--- a/src/egl/main/egllog.c
+++ b/src/egl/main/egllog.c
@@ -21,7 +21,11 @@ static EGLint ReportingLevel = -1;
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;