X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_playlist.cc;h=77dd643d72a80acd9731781583105b19fe14e772;hp=04950028af6dcfaec08a5ed663ebe4fb4f1391eb;hb=c04fec82d25127fafa73c3daff87bece9aa8c8e8;hpb=b46c35e50da6e557a02156bc094e639650b1c890 diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 04950028a..77dd643d7 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -36,9 +36,6 @@ #include #include #include -#ifdef __WXOSX__ -#include -#endif #include using std::exception; @@ -52,6 +49,9 @@ using boost::shared_ptr; using boost::weak_ptr; using boost::bind; using boost::dynamic_pointer_cast; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif class ContentDialog : public wxDialog, public ContentStore { @@ -585,10 +585,8 @@ private: unsetenv ("UBUNTU_MENUPROXY"); #endif -#ifdef __WXOSX__ - ProcessSerialNumber serial; - GetCurrentProcess (&serial); - TransformProcessType (&serial, kProcessTransformToForegroundApplication); +#ifdef DCPOMATIC_OSX + make_foreground_application (); #endif dcpomatic_setup_path_encoding ();