Windows: Make cancel_io() in poll_windows.c static
authorPete Batard <pbatard@gmail.com>
Tue, 14 Jun 2011 23:38:58 +0000 (01:38 +0200)
committerPeter Stuge <peter@stuge.se>
Sun, 24 Jul 2011 20:29:09 +0000 (22:29 +0200)
References #97.

libusb/os/poll_windows.c

index b17b253..c997c81 100644 (file)
@@ -104,7 +104,7 @@ static volatile LONG compat_spinlock = 0;
 // platform headers, we hook into the Kernel32 system DLL directly to seek it.
 static BOOL (__stdcall *pCancelIoEx)(HANDLE, LPOVERLAPPED) = NULL;
 #define CancelIoEx_Available (pCancelIoEx != NULL)
-__inline BOOL cancel_io(int _index)
+static __inline BOOL cancel_io(int _index)
 {
        if ((_index < 0) || (_index >= MAX_FDS)) {
                return FALSE;