diff --git a/dlls/mmdevapi/devenum.c b/dlls/mmdevapi/devenum.c index 362855e8176..b593eb6fe06 100644 --- a/dlls/mmdevapi/devenum.c +++ b/dlls/mmdevapi/devenum.c @@ -16,11 +16,19 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define NONAMELESSUNION #include "config.h" #include +#ifdef HAVE_AL_AL_H +#include +#include +#elif defined(HAVE_OPENAL_AL_H) +#include +#include +#endif + +#define NONAMELESSUNION #define CINTERFACE #define COBJMACROS #include "windef.h" diff --git a/dlls/mmdevapi/main.c b/dlls/mmdevapi/main.c index d9536aa6a65..04679631018 100644 --- a/dlls/mmdevapi/main.c +++ b/dlls/mmdevapi/main.c @@ -21,6 +21,14 @@ #include +#ifdef HAVE_AL_AL_H +#include +#include +#elif defined(HAVE_OPENAL_AL_H) +#include +#include +#endif + #define CINTERFACE #define COBJMACROS #include "windef.h" diff --git a/dlls/mmdevapi/mmdevapi.h b/dlls/mmdevapi/mmdevapi.h index 310c9f1b121..bcca85e0b12 100644 --- a/dlls/mmdevapi/mmdevapi.h +++ b/dlls/mmdevapi/mmdevapi.h @@ -16,6 +16,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#ifndef __WINE_CONFIG_H +# error You must include config.h to use this header +#endif + extern HRESULT MMDevEnum_Create(REFIID riid, void **ppv); extern void MMDevEnum_Free(void); @@ -37,15 +41,6 @@ typedef struct MMDevice { #ifdef HAVE_OPENAL -#ifdef HAVE_AL_AL_H -#include -#include -#elif defined(HAVE_OPENAL_AL_H) -#include -#include -#else -#error No OpenAL headers found? -#endif #include "alext.h" /* All openal functions */