From 16102c258ae5eb619e6b494a93be58897281118d Mon Sep 17 00:00:00 2001 From: patrick96 Date: Thu, 28 Sep 2023 19:02:32 +0200 Subject: [PATCH] alsa: include asoundlib.h instead of all alsa headers In alsa 1.2.10, the `alsa/control.h` header cannot be included on its own because it does not include all symbols it uses. We are basically duplicating asoundlib.h anyway and there is even a macro variable to switch to it. Ref: #3009 Ref: https://github.com/alsa-project/alsa-lib/issues/348 --- include/adapters/alsa/generic.hpp | 40 ------------------------------- 1 file changed, 40 deletions(-) diff --git a/include/adapters/alsa/generic.hpp b/include/adapters/alsa/generic.hpp index 2415946d..88fa52fe 100644 --- a/include/adapters/alsa/generic.hpp +++ b/include/adapters/alsa/generic.hpp @@ -1,46 +1,6 @@ #pragma once -#ifdef USE_ALSALIB_H #include -#else -#include - -#ifndef __FreeBSD__ -#include -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifndef __GNUC__ -#define __inline__ inline -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif #include "common.hpp" #include "settings.hpp"