summaryrefslogtreecommitdiff
path: root/libs/ardour/butler.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2013-08-04 19:03:32 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2013-08-04 19:03:32 +0100
commit0dc8806ee473f96d1f480f7a50b7a39efaf6d90a (patch)
tree2b82ec97fb14c89fe1316561c950def46e5aa85d /libs/ardour/butler.cc
parentd176cbc80476cdc8ca082631efc171ea39116d63 (diff)
'libs/ardour' - Platform specific changes and includes
Diffstat (limited to 'libs/ardour/butler.cc')
-rw-r--r--libs/ardour/butler.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/butler.cc b/libs/ardour/butler.cc
index 2998314443..747dfcd575 100644
--- a/libs/ardour/butler.cc
+++ b/libs/ardour/butler.cc
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include <unistd.h>
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
#include <poll.h>
#endif
@@ -72,7 +72,7 @@ Butler::config_changed (std::string p)
}
}
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
int
Butler::setup_request_pipe ()
{
@@ -116,7 +116,7 @@ Butler::start_thread()
should_run = false;
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
if (setup_request_pipe() != 0) return -1;
#endif
@@ -149,7 +149,7 @@ Butler::_thread_work (void* arg)
bool
Butler::wait_for_requests ()
{
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
struct pollfd pfd[1];
pfd[0].fd = request_pipe[0];
@@ -187,7 +187,7 @@ Butler::wait_for_requests ()
bool
Butler::dequeue_request (Request::Type& r)
{
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
char req;
size_t nread = ::read (request_pipe[0], &req, sizeof (req));
if (nread == 1) {
@@ -221,7 +221,7 @@ Butler::thread_work ()
Request::Type req;
/* empty the pipe of all current requests */
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
dequeue_request (req);
{
#else
@@ -387,7 +387,7 @@ Butler::schedule_transport_work ()
void
Butler::queue_request (Request::Type r)
{
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
char c = r;
(void) ::write (request_pipe[1], &c, 1);
#else