summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/midi++2/ipmidi_port.cc12
-rw-r--r--libs/midi++2/jack_midi_port.cc6
-rw-r--r--libs/midi++2/midi++/ipmidi_port.h2
-rw-r--r--libs/midi++2/midi++/jack_midi_port.h4
-rw-r--r--libs/midi++2/midi++/port.h2
5 files changed, 13 insertions, 13 deletions
diff --git a/libs/midi++2/ipmidi_port.cc b/libs/midi++2/ipmidi_port.cc
index 59606bffb2..4c0282f1f7 100644
--- a/libs/midi++2/ipmidi_port.cc
+++ b/libs/midi++2/ipmidi_port.cc
@@ -29,13 +29,13 @@
#undef O_NONBLOCK
#define O_NONBLOCK 0
#endif
-#if defined(WIN32)
+#if defined(PLATFORM_WINDOWS)
#include <winsock2.h>
#else
#include <netdb.h>
#endif
-#if defined(WIN32)
+#if defined(PLATFORM_WINDOWS)
static WSADATA g_wsaData;
typedef int socklen_t;
#else
@@ -120,7 +120,7 @@ get_address (int sock, struct in_addr *inaddr, const string& ifname )
{
// Get interface address from supplied name.
-#if !defined(WIN32)
+#if !defined(PLATFORM_WINDOWS)
struct ifreq ifr;
::strncpy(ifr.ifr_name, ifname.c_str(), sizeof(ifr.ifr_name));
@@ -149,13 +149,13 @@ get_address (int sock, struct in_addr *inaddr, const string& ifname )
return false;
-#endif // !WIN32
+#endif // !PLATFORM_WINDOWS'
}
bool
IPMIDIPort::open_sockets (int base_port, const string& ifname)
{
-#if !defined(WIN32)
+#if !defined(PLATFORM_WINDOWS)
int protonum = 0;
struct protoent *proto = ::getprotobyname("IP");
@@ -254,7 +254,7 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
return true;
#else
return false;
-#endif // !WIN32
+#endif // !PLATFORM_WINDOWS'
}
int
diff --git a/libs/midi++2/jack_midi_port.cc b/libs/midi++2/jack_midi_port.cc
index cb0d271837..38ec4d35c7 100644
--- a/libs/midi++2/jack_midi_port.cc
+++ b/libs/midi++2/jack_midi_port.cc
@@ -58,7 +58,7 @@ JackMIDIPort::JackMIDIPort (string const & name, Flags flags, jack_client_t* jac
, _last_write_timestamp (0)
, output_fifo (512)
, input_fifo (1024)
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
, xthread (true)
#endif
{
@@ -75,7 +75,7 @@ JackMIDIPort::JackMIDIPort (const XMLNode& node, jack_client_t* jack_client)
, _last_write_timestamp (0)
, output_fifo (512)
, input_fifo (1024)
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
, xthread (true)
#endif
{
@@ -174,7 +174,7 @@ JackMIDIPort::cycle_start (pframes_t nframes)
}
if (event_count) {
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
xthread.wakeup ();
#endif
}
diff --git a/libs/midi++2/midi++/ipmidi_port.h b/libs/midi++2/midi++/ipmidi_port.h
index c077170026..a4adb14cf4 100644
--- a/libs/midi++2/midi++/ipmidi_port.h
+++ b/libs/midi++2/midi++/ipmidi_port.h
@@ -21,7 +21,7 @@
#include <string>
#include <iostream>
-#if defined(WIN32)
+#if defined(PLATFORM_WINDOWS)
#include <winsock.h>
#elif defined(__FREE_BSD__)
#include <netinet/in.h>
diff --git a/libs/midi++2/midi++/jack_midi_port.h b/libs/midi++2/midi++/jack_midi_port.h
index f91c7dab83..284df0ef2d 100644
--- a/libs/midi++2/midi++/jack_midi_port.h
+++ b/libs/midi++2/midi++/jack_midi_port.h
@@ -58,7 +58,7 @@ class JackMIDIPort : public Port {
int read (byte *buf, size_t bufsize);
void drain (int check_interval_usecs);
int selectable () const {
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
return false;
#else
return xthread.selectable();
@@ -86,7 +86,7 @@ private:
RingBuffer< Evoral::Event<double> > output_fifo;
Evoral::EventRingBuffer<timestamp_t> input_fifo;
Glib::Threads::Mutex output_fifo_lock;
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
CrossThreadChannel xthread;
#endif
diff --git a/libs/midi++2/midi++/port.h b/libs/midi++2/midi++/port.h
index d4f03b593e..153cfb0529 100644
--- a/libs/midi++2/midi++/port.h
+++ b/libs/midi++2/midi++/port.h
@@ -27,7 +27,7 @@
#include <pthread.h>
#include "pbd/xml++.h"
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
#include "pbd/crossthread.h"
#endif
#include "pbd/signals.h"