summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2015-01-18 11:16:28 -0600
committerBen Loftis <ben@harrisonconsoles.com>2015-01-18 11:16:28 -0600
commita994dbaa0ce7e93d53979dbc166485b258a0ce53 (patch)
tree95c7afefe273d487d832a9af95de5fbbbe80a9d0
parentd3227ac0d0f8e492580c726d8a862f4f745c88da (diff)
fix open_uri for windows
-rw-r--r--libs/pbd/openuri.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/pbd/openuri.cc b/libs/pbd/openuri.cc
index 5e6cc9a2d6..f3c2ad9e6a 100644
--- a/libs/pbd/openuri.cc
+++ b/libs/pbd/openuri.cc
@@ -32,10 +32,17 @@
extern bool cocoa_open_url (const char*);
#endif
+#ifdef PLATFORM_WINDOWS
+ #include <windows.h>
+#endif
+
bool
PBD::open_uri (const char* uri)
{
-#ifdef __APPLE__
+#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 ();