allow to compile PBD::Signals w/o connection debugging
[ardour.git] / libs / pbd / openuri.cc
index 13d534e7606f9eb0102be399efdeb3d79a5ecd0c..e2575185dfb013bc4028b8cc5062c06edf0bf08a 100644 (file)
 #include "pbd/epa.h"
 #include "pbd/openuri.h"
 
+#ifdef __APPLE__
+       extern bool cocoa_open_url (const char*);
+#endif
+
+#ifdef PLATFORM_WINDOWS
+       #include <windows.h>
+       #include <shellapi.h>
+#endif
+
 bool
 PBD::open_uri (const char* uri)
 {
-#ifdef __APPLE__
-       extern bool cocoa_open_url (const char*);
+#ifdef PLATFORM_WINDOWS
+       ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
+       return true;
+#elif __APPLE__
        return cocoa_open_url (uri);
 #else
        EnvironmentalProtectionAgency* global_epa = EnvironmentalProtectionAgency::get_global_epa ();