mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-13 20:09:59 +02:00
Also add a way to use logging library without Asio
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
|
||||
// We also use this header from the chainloaders, and we don't want to pull in
|
||||
// Asio there
|
||||
#ifndef PROCESS_NO_ASIO
|
||||
#ifndef WITHOUT_ASIO
|
||||
#ifdef __WINE__
|
||||
#include "../wine-host/asio-fix.h"
|
||||
#endif
|
||||
|
||||
#include <asio/posix/stream_descriptor.hpp>
|
||||
#endif // PROCESS_NO_ASIO
|
||||
#endif // WITHOUT_ASIO
|
||||
|
||||
// A minimal API akin to Boost.Process for launching and managing processes
|
||||
// using plain Linux APIs. Needed so we can implement our chainloader without
|
||||
@@ -240,7 +240,7 @@ class Process {
|
||||
*/
|
||||
StatusResult spawn_get_status() const;
|
||||
|
||||
#ifndef PROCESS_NO_ASIO
|
||||
#ifndef WITHOUT_ASIO
|
||||
/**
|
||||
* Spawn the process without waiting for its completion, leave STDIN alone,
|
||||
* create pipes for STDOUT and STDERR, and assign those to the provided
|
||||
@@ -251,7 +251,7 @@ class Process {
|
||||
HandleResult spawn_child_piped(
|
||||
asio::posix::stream_descriptor& stdout_pipe,
|
||||
asio::posix::stream_descriptor& stderr_pipe) const;
|
||||
#endif // PROCESS_NO_ASIO
|
||||
#endif // WITHOUT_ASIO
|
||||
|
||||
/**
|
||||
* Spawn the process without waiting for its completion, leave STDIN alone,
|
||||
|
||||
Reference in New Issue
Block a user