Index: src/ports/SkMutex_pthread.h |
diff --git a/src/ports/SkMutex_pthread.h b/src/ports/SkMutex_pthread.h |
index f71016b31e88a28b3cc1932a2e4bf1d0f0c93abd..e5bf5fc3b15c5050c100a72f5d6249e2ab3bfb28 100644 |
--- a/src/ports/SkMutex_pthread.h |
+++ b/src/ports/SkMutex_pthread.h |
@@ -89,9 +89,6 @@ private: |
#define SK_BASE_MUTEX_INIT { PTHREAD_MUTEX_INITIALIZER, SkDEBUGCODE(0) } |
// Using POD-style initialization prevents the generation of a static initializer. |
-#define SK_DECLARE_STATIC_MUTEX(name) static SkBaseMutex name = SK_BASE_MUTEX_INIT |
- |
-// Special case used when the static mutex must be available globally. |
-#define SK_DECLARE_GLOBAL_MUTEX(name) SkBaseMutex name = SK_BASE_MUTEX_INIT |
+#define SK_DECLARE_STATIC_MUTEX(name) static inline void SK_MACRO_APPEND_LINE(name)(){} static SkBaseMutex name = SK_BASE_MUTEX_INIT |
#endif |