aboutsummaryrefslogtreecommitdiff
path: root/wince/missing
diff options
context:
space:
mode:
authorNicolas Bacca2002-03-15 02:23:44 +0000
committerNicolas Bacca2002-03-15 02:23:44 +0000
commit829bad142c2757a7025c292055bd769dd87f2995 (patch)
tree1c85feb1ebe83c219d5a57bc846b6dd747c8e016 /wince/missing
parent7a4121a61a13f59ac9f4cc7bc0b2f909d845f33f (diff)
downloadscummvm-rg350-829bad142c2757a7025c292055bd769dd87f2995.tar.gz
scummvm-rg350-829bad142c2757a7025c292055bd769dd87f2995.tar.bz2
scummvm-rg350-829bad142c2757a7025c292055bd769dd87f2995.zip
Make mp3 sound work (pretty good btw) with WinCE
svn-id: r3761
Diffstat (limited to 'wince/missing')
-rw-r--r--wince/missing/missing.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/wince/missing/missing.cpp b/wince/missing/missing.cpp
index d139584f54..5adabda22a 100644
--- a/wince/missing/missing.cpp
+++ b/wince/missing/missing.cpp
@@ -366,3 +366,12 @@ char* getenv(char* name)
return "";
}
+void *bsearch(const void *key, const void *base, size_t nmemb,
+ size_t size, int (*compar)(const void *, const void *)) {
+ size_t i;
+
+ for (i=0; i<nmemb; i++)
+ if (compar(key, (void*)((size_t)base + size * i)) == 0)
+ return (void*)((size_t)base + size * i);
+ return NULL;
+}