mesa: No getenv on WinCE.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 23 Jun 2008 17:35:50 +0000 (02:35 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 23 Jun 2008 17:39:17 +0000 (02:39 +0900)
src/mesa/glapi/glapi.c

index ed59ddb0b733363fc658d780af39bac2efd5d2fc..c236656d9a6fba1498bb8c0c3d79c5ab4074b3a9 100644 (file)
@@ -82,6 +82,7 @@ _glapi_set_warning_func( _glapi_warning_func func )
 static GLboolean
 warn(void)
 {
+#if !defined(_WIN32_WCE)
    if ((WarnFlag || getenv("MESA_DEBUG") || getenv("LIBGL_DEBUG"))
        && warning_func) {
       return GL_TRUE;
@@ -89,6 +90,9 @@ warn(void)
    else {
       return GL_FALSE;
    }
+#else
+   return GL_FALSE;
+#endif
 }