summaryrefslogtreecommitdiff
path: root/libmodman/module.hpp
diff options
context:
space:
mode:
authornpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2010-02-15 19:53:16 +0000
committernpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2010-02-15 19:53:16 +0000
commitd436e8ff6055c3416c7b765c35b4fb502a0b7890 (patch)
treec3d77400ccc51f209bda15ac26b76a55f1576f23 /libmodman/module.hpp
parentf7bcfb80ebe9114baec58dfdba3d3975497975f4 (diff)
downloadlibproxy-d436e8ff6055c3416c7b765c35b4fb502a0b7890.tar.gz
A slightly similar version of WIN32 lazy loading
git-svn-id: http://libproxy.googlecode.com/svn/trunk@553 c587cffe-e639-0410-9787-d7902ae8ed56
Diffstat (limited to 'libmodman/module.hpp')
-rw-r--r--libmodman/module.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmodman/module.hpp b/libmodman/module.hpp
index 37f4a20..bcaf740 100644
--- a/libmodman/module.hpp
+++ b/libmodman/module.hpp
@@ -27,7 +27,6 @@
#define __MM_DLL_EXPORT __declspec(dllexport)
#define __MM_FUNC_DEF_PREFIX extern "C" __MM_DLL_EXPORT
#define __MM_SCLR_DEF_PREFIX extern "C" __MM_DLL_EXPORT
-template <class T> static const char* __mm_get_type_name() { return __FUNCSIG__; }
#else
#define __MM_DLL_EXPORT __attribute__ ((visibility("default")))
#define __MM_FUNC_DEF_PREFIX __MM_DLL_EXPORT
@@ -64,7 +63,7 @@ class __MM_DLL_EXPORT base_extension {
public:
static const char* base_type() {
#ifdef WIN32
- return __mm_get_type_name<base_extension>();
+ return __FUNCSIG__;
#else
return typeid(base_extension).name();
#endif
@@ -80,7 +79,7 @@ class __MM_DLL_EXPORT extension : public base_extension {
public:
static const char* base_type() {
#ifdef WIN32
- return __mm_get_type_name<T>();
+ return __FUNCSIG__;
#else
return typeid(T).name();
#endif