by the GUI ...
*/
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
Sleep(2000);
#else
struct timespec t = { 2, 0 };
ffs["-an"] = "-y";
ffs["-passlogfile"] = Glib::path_get_dirname (outfn) + G_DIR_SEPARATOR + "ffmpeg2pass";
ffs["-f"] = get_file_extension(invid).empty()?"mov":get_file_extension(invid);
-#ifdef _OS_WIN32
+#ifdef PLATFORM_WINDOWS
outfn = "NUL";
#else
outfn = "/dev/null";
return curvetest (curvetest_file);
}
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
if (::signal (SIGPIPE, sigpipe_handler)) {
cerr << _("Cannot xinstall SIGPIPE error handler") << endl;
}
#include <fstream>
#include <cstring>
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
#include <sys/utsname.h>
#endif
static void*
_pingback (void *arg)
{
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
ping_call* cm = static_cast<ping_call*> (arg);
CURL* c;
struct utsname utb;
curl_easy_cleanup (c);
delete cm;
-#endif /* WIN32 */
+#endif /* PLATFORM_WINDOWS */
return 0;
}
}\r
}\r
basePath = p;\r
-#ifdef __WIN32__\r
+#ifdef PLATFORM_WINDOWS\r
std::string replace = "/";\r
size_t pos = basePath.find("\\");\r
while( pos != std::string::npos ){\r
bool
SoundFileOmega::check_link_status (const Session* s, const vector<string>& paths)
{
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
return false;
#else
std::string tmpdir(Glib::build_filename (s->session_directory().sound_path(), "linktest"));
#include <assert.h>
#include <dirent.h>
-#ifdef __WIN32__
+#ifdef PLATFORM_WINDOWS
#include <windows.h>
#else
#include <fcntl.h>
static void close_fd (int& fd) { if (fd >= 0) ::close (fd); fd = -1; }
-#ifndef __WIN32__
+#ifndef PLATFORM_WINDOWS
/*
* This function was part of libasyncns.
* LGPL v2.1
nicelevel = 0;
envp = NULL;
argp = NULL;
-#ifdef __WIN32__
+#ifdef PLATFORM_WINDOWS
stdinP[0] = stdinP[1] = INVALID_HANDLE_VALUE;
stdoutP[0] = stdoutP[1] = INVALID_HANDLE_VALUE;
stderrP[0] = stderrP[1] = INVALID_HANDLE_VALUE;
pin[1] = -1;
nicelevel = 0;
envp = NULL;
-#ifdef __WIN32__
+#ifdef PLATFORM_WINDOWS
stdinP[0] = stdinP[1] = INVALID_HANDLE_VALUE;
stdoutP[0] = stdoutP[1] = INVALID_HANDLE_VALUE;
stderrP[0] = stderrP[1] = INVALID_HANDLE_VALUE;
}
free (argp);
}
-#ifdef __WIN32__
+#ifdef PLATFORM_WINDOWS
if (w_args) free(w_args);
#endif
pthread_mutex_destroy(&write_lock);
return 0;
}
-#ifdef __WIN32__ /* Windows Process */
+#ifdef PLATFORM_WINDOWS /* Windows Process */
/* HELPER FUNCTIONS */
char **envp;
private:
-#ifdef __WIN32__
+#ifdef PLATFORM_WINDOWS
PROCESS_INFORMATION *pid;
HANDLE stdinP[2];
HANDLE stdoutP[2];
{
if (!ffcmd || !ffcmd->is_running()) { return;}
ffcmd->write_to_stdin("q");
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
Sleep(1000);
#else
sleep (1);
/* FT2 rendering - used by GnomeCanvas, sigh */
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
pango_ft2_font_map_set_resolution ((PangoFT2FontMap*) pango_ft2_font_map_new(), val/1024, val/1024);
#endif