summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 5809a621d4a..b8ec2e78550 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -485,24 +485,7 @@ void *
_mesa_bsearch( const void *key, const void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *) )
{
-#if defined(_WIN32_WCE)
- void *mid;
- int cmp;
- while (nmemb) {
- nmemb >>= 1;
- mid = (char *)base + nmemb * size;
- cmp = (*compar)(key, mid);
- if (cmp == 0)
- return mid;
- if (cmp > 0) {
- base = (char *)mid + size;
- --nmemb;
- }
- }
- return NULL;
-#else
return bsearch(key, base, nmemb, size, compar);
-#endif
}
/*@}*/
@@ -518,11 +501,7 @@ _mesa_bsearch( const void *key, const void *base, size_t nmemb, size_t size,
char *
_mesa_getenv( const char *var )
{
-#if defined(_WIN32_WCE)
- return NULL;
-#else
return getenv(var);
-#endif
}
/*@}*/