fix open_uri for windows

This commit is contained in:
Ben Loftis 2015-01-18 11:16:28 -06:00
parent d3227ac0d0
commit a994dbaa0c

View file

@ -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 ();