#include <cerrno>
#include <fstream>
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
#include <sys/resource.h>
#endif
void
ARDOUR_UI::check_memory_locking ()
{
-#if defined(__APPLE__) || defined(WIN32)
+#if defined(__APPLE__) || defined(PLATFORM_WINDOWS)
/* OS X doesn't support mlockall(2), and so testing for memory locking capability there is pointless */
return;
#else // !__APPLE__
warning << _("Specified docroot is not an existing directory.") << endmsg;
continue;
}
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
if ( (!g_lstat (icsd_exec.c_str(), &sb) == 0)
|| (sb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) == 0 ) {
warning << _("Given Video Server is not an executable file.") << endmsg;
{
if (AudioEngine::instance()->start ()) {
MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine"));
- msg.run ();
+ msg.run ();
return -1;
}
: RegionEditor (s, r)
, _audio_region (r)
, gain_adjustment(accurate_coefficient_to_dB(_audio_region->scale_amplitude()), -40.0, +40.0, 0.1, 1.0, 0)
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
, _peak_channel (false)
#endif
{
void
AudioRegionEditor::signal_peak_thread ()
{
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
m_peak_sem.post ();
#else
_peak_channel.deliver ('c');
void
AudioRegionEditor::wait_for_signal ()
{
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
m_peak_sem.wait ();
#else
char msg;
#include "pbd/signals.h"
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
#include "pbd/glib_semaphore.h"
#else
#include "pbd/crossthread.h"
void peak_amplitude_found (double);
PBD::Signal1<void, double> PeakAmplitudeFound;
PBD::ScopedConnection _peak_amplitude_connection;
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
PBD::GlibSemaphore m_peak_sem;
#else
CrossThreadChannel _peak_channel;