Only show user-presets in favorite sidebar
[ardour.git] / libs / audiographer / audiographer / debug_utils.h
index a1d825971620ed27106675a33b3a2627f5296650..410567d51b7cb74537fee9113af13b7dd2430742 100644 (file)
@@ -3,17 +3,21 @@
 
 #include "flag_field.h"
 
+#include <cstdlib>
 #include <string>
 
 #ifdef __GNUC__
 #include <cxxabi.h>
+#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>
@@ -24,13 +28,13 @@ 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
                return typeid(obj).name();
        }
-       
+
        /// Returns name of ProcessContext::Flag
        static std::string process_context_flag_name (FlagField::Flag flag);
 };