From a994dbaa0ce7e93d53979dbc166485b258a0ce53 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sun, 18 Jan 2015 11:16:28 -0600 Subject: [PATCH] fix open_uri for windows --- libs/pbd/openuri.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 +#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 ();