mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
fix open_uri for windows
This commit is contained in:
parent
d3227ac0d0
commit
a994dbaa0c
1 changed files with 8 additions and 1 deletions
|
|
@ -32,10 +32,17 @@
|
||||||
extern bool cocoa_open_url (const char*);
|
extern bool cocoa_open_url (const char*);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef PLATFORM_WINDOWS
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PBD::open_uri (const char* uri)
|
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);
|
return cocoa_open_url (uri);
|
||||||
#else
|
#else
|
||||||
EnvironmentalProtectionAgency* global_epa = EnvironmentalProtectionAgency::get_global_epa ();
|
EnvironmentalProtectionAgency* global_epa = EnvironmentalProtectionAgency::get_global_epa ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue