From ea2edfcc4667b6d7ac619d13550a4c6f5fd14b7d Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Sat, 20 Aug 2011 23:03:59 +0100 Subject: some inlines were not declared as static --- libusb/os/poll_windows.c | 2 +- libusb/os/windows_usb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c index 9d6cea1..9d6f3e6 100644 --- a/libusb/os/poll_windows.c +++ b/libusb/os/poll_windows.c @@ -120,7 +120,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; diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h index 4cecc33..6f930d5 100644 --- a/libusb/os/windows_usb.h +++ b/libusb/os/windows_usb.h @@ -70,7 +70,7 @@ extern char *_strdup(const char *strSource); #define safe_sprintf _snprintf #define safe_unref_device(dev) do {if (dev != NULL) {libusb_unref_device(dev); dev = NULL;}} while(0) #define wchar_to_utf8_ms(wstr, str, strlen) WideCharToMultiByte(CP_UTF8, 0, wstr, -1, str, strlen, NULL, NULL) -inline void upperize(char* str) { +static inline void upperize(char* str) { size_t i; if (str == NULL) return; for (i=0; i