From 995e279081958cd292fe8515075b21df7cac85ae Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 2 Feb 2025 22:00:54 +0100 Subject: [PATCH] include: pcm extplug/ioplug: fix internal include The header files are directly included when the alsa-lib is building. Do not show warning. Fixes: ea8972c8 ("include: prefer alsa/asoundlib.h for apps, dependency cleanups") Signed-off-by: Jaroslav Kysela --- include/pcm_extplug.h | 2 +- include/pcm_ioplug.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pcm_extplug.h b/include/pcm_extplug.h index 09d7c7cb..1294a59e 100644 --- a/include/pcm_extplug.h +++ b/include/pcm_extplug.h @@ -28,7 +28,7 @@ * */ -#ifndef __ALSA_PCM_EXTERNAL_H +#if !defined(__ALSA_PCM_EXTERNAL_H) && !defined(ALSA_LIBRARY_BUILD) #warning "use #include , should not be used directly" #include #endif diff --git a/include/pcm_ioplug.h b/include/pcm_ioplug.h index 457b3e8b..722dc9d7 100644 --- a/include/pcm_ioplug.h +++ b/include/pcm_ioplug.h @@ -28,7 +28,7 @@ * */ -#ifndef __ALSA_PCM_EXTERNAL_H +#if !defined(__ALSA_PCM_EXTERNAL_H) && !defined(ALSA_LIBRARY_BUILD) #warning "use #include , should not be used directly" #include #endif -- 2.47.1