[System.IO.Compression] Fixed DeflateStream inflate() decompression loop.
[mono.git] / support / supportw.c
index 21fb4abca03ec13a14078a10299d4ef9bddd166a..51b49697152b36ac93cedb5ba9ea741231deedd7 100644 (file)
@@ -19,7 +19,6 @@
 #include "mono/metadata/object.h"
 #include "mono/metadata/tabledefs.h"
 #include "mono/io-layer/wapi.h"
-#include "mono/utils/bsearch.h"
 
 typedef struct {
        const char *fname;
@@ -50,7 +49,7 @@ get_function (const char *name)
 {
        FnPtr *ptr;
 
-       ptr = mono_binary_search (name, functions, NFUNCTIONS, sizeof (FnPtr),
+       ptr = bsearch (name, functions, NFUNCTIONS, sizeof (FnPtr),
                        compare_names);
 
        if (ptr == NULL) {
@@ -68,7 +67,7 @@ supportw_register_delegate (const char *function_name, void *fnptr)
 
        g_return_val_if_fail (function_name && fnptr, FALSE);
 
-       ptr = mono_binary_search (function_name, functions, NFUNCTIONS, sizeof (FnPtr),
+       ptr = bsearch (function_name, functions, NFUNCTIONS, sizeof (FnPtr),
                        compare_names);
 
        if (ptr == NULL) {
@@ -159,6 +158,9 @@ FindWindowExW (gpointer hwndParent, gpointer hwndChildAfter, const char *classw,
        return func (hwndParent, hwndChildAfter, classw, window);
 }
 
+int
+SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags);
+
 int
 SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags)
 {
@@ -166,6 +168,9 @@ SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int
        return 1;
 }
 
+int
+SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam);
+
 int
 SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam)
 {
@@ -173,6 +178,9 @@ SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam)
        return 0;
 }
 
+int
+GetWindowLongA (gpointer hwnd, int a);
+
 int
 GetWindowLongA (gpointer hwnd, int a)
 {