diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2015-01-18 11:16:28 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-01-18 11:16:28 -0600 |
commit | a994dbaa0ce7e93d53979dbc166485b258a0ce53 (patch) | |
tree | 95c7afefe273d487d832a9af95de5fbbbe80a9d0 | |
parent | d3227ac0d0f8e492580c726d8a862f4f745c88da (diff) |
fix open_uri for windows
-rw-r--r-- | libs/pbd/openuri.cc | 9 |
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 (); |