summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-05-11 00:37:15 +0100
committerPete Batard <pbatard@gmail.com>2010-05-11 00:37:15 +0100
commitffb9d6b415a56ac5fe545236a0b77707c520edbc (patch)
tree6abcd7123e569b229026318ee643bc05b7656083
parent0e74019d22094c1d0f35c40b01f9c788c63f4fee (diff)
downloadlibusb-ffb9d6b415a56ac5fe545236a0b77707c520edbc.tar.gz
moved static modifier from thread_posix.h to core.cpbr276
-rw-r--r--libusb/core.c2
-rw-r--r--libusb/os/threads_posix.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 0fb6e7b..c897e0f 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -41,7 +41,7 @@ const struct usbi_os_backend * const usbi_backend = &windows_backend;
#endif
struct libusb_context *usbi_default_context = NULL;
-usbi_mutex_static_t default_context_lock = USBI_MUTEX_INITIALIZER;
+static usbi_mutex_static_t default_context_lock = USBI_MUTEX_INITIALIZER;
/**
* \mainpage libusb-1.0 API Reference
diff --git a/libusb/os/threads_posix.h b/libusb/os/threads_posix.h
index 7e34dc5..dc558d4 100644
--- a/libusb/os/threads_posix.h
+++ b/libusb/os/threads_posix.h
@@ -23,7 +23,7 @@
#include <pthread.h>
-#define usbi_mutex_static_t static pthread_mutex_t
+#define usbi_mutex_static_t pthread_mutex_t
#define USBI_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
#define usbi_mutex_static_lock pthread_mutex_lock
#define usbi_mutex_static_unlock pthread_mutex_unlock