diff options
author | npmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56> | 2010-09-26 15:42:35 +0000 |
---|---|---|
committer | npmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56> | 2010-09-26 15:42:35 +0000 |
commit | d271c3861c2e8693e9acf000355900583f16c3db (patch) | |
tree | fdeb18007c807fcb33dc04177ec194cc9fba1262 /libmodman/module.hpp | |
parent | 796408e9c16620c2ef72b1c7ab404277222f000a (diff) | |
download | libproxy-d271c3861c2e8693e9acf000355900583f16c3db.tar.gz |
(hopefully) make libmodman work on windows using mingw
git-svn-id: http://libproxy.googlecode.com/svn/trunk@759 c587cffe-e639-0410-9787-d7902ae8ed56
Diffstat (limited to 'libmodman/module.hpp')
-rw-r--r-- | libmodman/module.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmodman/module.hpp b/libmodman/module.hpp index 6335595..e144cff 100644 --- a/libmodman/module.hpp +++ b/libmodman/module.hpp @@ -26,10 +26,9 @@ #define MM_MODULE_BUILTIN #endif -#ifdef WIN32 +#ifdef _MSC_VER #define __MM_DLL_EXPORT __declspec(dllexport) #else -#include <typeinfo> #define __MM_DLL_EXPORT __attribute__ ((visibility("default"))) #endif @@ -79,10 +78,10 @@ public: template <class basetype, bool sngl=false> class __MM_DLL_EXPORT extension : public base_extension { public: -#ifdef WIN32 +#ifdef _MSC_VER static const char* base_type() { return __FUNCSIG__; } #else - static const char* base_type() { return typeid(basetype).name(); } + static const char* base_type() { return __PRETTY_FUNCTION__; } #endif static bool singleton() { return sngl; } |