summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/utils/Singleton.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h
index c60680eab..ffc03cb5d 100644
--- a/include/utils/Singleton.h
+++ b/include/utils/Singleton.h
@@ -65,9 +65,10 @@ private:
65 */ 65 */
66 66
67#define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \ 67#define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \
68 template<> Mutex Singleton< TYPE >::sLock(Mutex::PRIVATE); \ 68 template<> ::android::Mutex \
69 template<> TYPE* Singleton< TYPE >::sInstance(0); \ 69 (::android::Singleton< TYPE >::sLock)(::android::Mutex::PRIVATE); \
70 template class Singleton< TYPE >; 70 template<> TYPE* ::android::Singleton< TYPE >::sInstance(0); \
71 template class ::android::Singleton< TYPE >;
71 72
72 73
73// --------------------------------------------------------------------------- 74// ---------------------------------------------------------------------------