Merge windows+cc branch into cairocanvas branch. Not finished, need to now merge...
[ardour.git] / libs / audiographer / audiographer / debug_utils.h
index 7b9e50124ae3454820162f794656683ada6a3cb1..a8c63e85b622bbb898bc7b0595f7f9068bf6fe6e 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "flag_field.h"
 
+#include <cstdlib>
 #include <string>
 
 #ifdef __GNUC__
 #include <cstdlib>
 #endif
 
+#include "audiographer/visibility.h"
+
 namespace AudioGrapher
 {
 
 /// Utilities for debugging
-struct DebugUtils
+struct LIBAUDIOGRAPHER_API DebugUtils
 {
        /// Returns the demangled name of the object passed as the parameter
        template<typename T>
@@ -25,7 +28,7 @@ struct DebugUtils
                char * res = abi::__cxa_demangle (typeid(obj).name(), 0, 0, &status);
                if (status == 0) {
                        std::string s(res);
-                       free (res);
+                       std::free (res);
                        return s;
                }
 #endif