Merge branch 'master' into cairocanvas
[ardour.git] / libs / pbd / pbd / demangle.h
index 5e6f2a1b5666206ddd24a5a58ee9ad40e6e6706d..12dc58839c064977bd1e263482023a23b7706d94 100644 (file)
 
 #include <string>
 #include <cstdlib>
+#include <typeinfo>
 
 #ifdef __GNUC__
 #include <cxxabi.h>
 #endif
 
+#include "pbd/libpbd_visibility.h"
+
 namespace PBD
 {
-       template<typename T>
+       template<typename T> /*LIBPBD_API*/ 
        std::string demangled_name (T const & obj)
        {
 #ifdef __GNUC__
@@ -44,6 +47,7 @@ namespace PBD
 
                 /* Note: on win32, you can use UnDecorateSymbolName.
                    See http://msdn.microsoft.com/en-us/library/ms681400%28VS.85%29.aspx
+                   See also: http://msdn.microsoft.com/en-us/library/ms680344%28VS.85%29.aspx
                 */
                 
                return typeid(obj).name();