summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@akeo.ie>2011-08-20 23:03:59 +0100
committerPete Batard <pbatard@akeo.ie>2011-08-23 22:56:23 +0100
commitea2edfcc4667b6d7ac619d13550a4c6f5fd14b7d (patch)
tree088c650a114e626a5b2f890af5f2dd255f2087a9
parent3f0138427198ab0cadc422224d8ab74a31bb9a4f (diff)
downloadlibusb-ea2edfcc4667b6d7ac619d13550a4c6f5fd14b7d.tar.gz
some inlines were not declared as static
-rw-r--r--libusb/os/poll_windows.c2
-rw-r--r--libusb/os/windows_usb.h2
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<safe_strlen(str); i++)