summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-07-12 00:33:35 +0159
committerAmit Pundir <Amit.Pundir@linaro.org>2013-02-13 08:45:23 +0530
commit2758b78d148b533e2dc370c99f3a785e22cd21c6 (patch)
tree8db142fea22b3d77936505213bdc0ef201873dc9
parent529cb9ed9c5d62d5b270cdd650380ae116382143 (diff)
downloadnative-2758b78d148b533e2dc370c99f3a785e22cd21c6.tar.gz
frameworks/base: Make sure Singleton instantiations are exported
This fixes using Singletons across shared library borders with gcc 4.7+ Change-Id: I84b9cc99add4ace64c16e4fa8414a4fc7e4693c7 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--include/utils/Singleton.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h
index c60680eabc..b88a8799bf 100644
--- a/include/utils/Singleton.h
+++ b/include/utils/Singleton.h
@@ -65,9 +65,9 @@ private:
*/
#define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \
- template<> Mutex Singleton< TYPE >::sLock(Mutex::PRIVATE); \
- template<> TYPE* Singleton< TYPE >::sInstance(0); \
- template class Singleton< TYPE >;
+ template<> ANDROID_API Mutex Singleton< TYPE >::sLock(Mutex::PRIVATE); \
+ template<> ANDROID_API TYPE* Singleton< TYPE >::sInstance(0); \
+ template class ANDROID_API Singleton< TYPE >;
// ---------------------------------------------------------------------------