summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-06-24 02:35:50 +0900
committerJosé Fonseca <[email protected]>2008-06-24 02:39:17 +0900
commitab7ad60d47fdd6fbbbbdb8968676083356e8692d (patch)
treed6853a91728d2d89216430b903d3ab6dd835ce80 /src
parentd9f38a2ad1477cc6aeb94c083ab439b8c704be2e (diff)
mesa: No getenv on WinCE.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/glapi/glapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index ed59ddb0b73..c236656d9a6 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
}