mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +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*);
|
||||
#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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue