]> git.alsa-project.org Git - alsa-lib.git/commitdiff
include: pcm extplug/ioplug: fix internal include
authorJaroslav Kysela <perex@perex.cz>
Sun, 2 Feb 2025 21:00:54 +0000 (22:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 2 Feb 2025 21:00:54 +0000 (22:00 +0100)
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 <perex@perex.cz>
include/pcm_extplug.h
include/pcm_ioplug.h

index 09d7c7cb71f1212f8842e955bbba5cb9f81c24fc..1294a59e655856db07c0e3f712de6393b4f96351 100644 (file)
@@ -28,7 +28,7 @@
  *
  */
 
-#ifndef __ALSA_PCM_EXTERNAL_H
+#if !defined(__ALSA_PCM_EXTERNAL_H) && !defined(ALSA_LIBRARY_BUILD)
 #warning "use #include <alsa/pcm_external.h>, <alsa/pcm_extplug.h> should not be used directly"
 #include <alsa/pcm_external.h>
 #endif
index 457b3e8bef9f79ecb0a226cb03e8074a7effcaa5..722dc9d7b9a86c7c396668ab6f70f8f1c1f5fcd8 100644 (file)
@@ -28,7 +28,7 @@
  *
  */
 
-#ifndef __ALSA_PCM_EXTERNAL_H
+#if !defined(__ALSA_PCM_EXTERNAL_H) && !defined(ALSA_LIBRARY_BUILD)
 #warning "use #include <alsa/pcm_external.h>, <alsa/pcm_ioplug.h> should not be used directly"
 #include <alsa/pcm_external.h>
 #endif