Use cmakedefine01 instead of cmakedefine

This commit is contained in:
Guillaume Meunier
2024-10-01 21:46:41 +02:00
parent 68ddabdcdd
commit 674343c74f
6 changed files with 38 additions and 38 deletions
+4 -4
View File
@@ -22,11 +22,11 @@
#include "util/u_logging.h"
#include "wivrn_config.h"
#ifdef WIVRN_USE_PULSEAUDIO
#if WIVRN_USE_PULSEAUDIO
#include "audio_pulse.h"
#endif
#ifdef WIVRN_USE_PIPEWIRE
#if WIVRN_USE_PIPEWIRE
#include "audio_pipewire.h"
#endif
@@ -38,12 +38,12 @@ std::shared_ptr<audio_device> audio_device::create(
const xrt::drivers::wivrn::from_headset::headset_info_packet & info,
xrt::drivers::wivrn::wivrn_session & session)
{
#ifdef WIVRN_USE_PIPEWIRE
#if WIVRN_USE_PIPEWIRE
if (auto res = create_pipewire_handle(source_name, source_description, sink_name, sink_description, info, session))
return res;
#endif
#ifdef WIVRN_USE_PULSEAUDIO
#if WIVRN_USE_PULSEAUDIO
if (auto res = create_pulse_handle(source_name, source_description, sink_name, sink_description, info, session))
return res;
#endif