From ab7ad60d47fdd6fbbbbdb8968676083356e8692d Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 24 Jun 2008 02:35:50 +0900 Subject: mesa: No getenv on WinCE. --- src/mesa/glapi/glapi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index ed59ddb0b7..c236656d9a 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -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 } -- cgit v1.2.3