mmdevapi: Include system headers before Wine headers.

This commit is contained in:
Alexandre Julliard 2010-04-05 17:44:23 +02:00
parent 7b36f6658b
commit a7d000e2e2
3 changed files with 21 additions and 10 deletions

View File

@ -16,11 +16,19 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSUNION
#include "config.h"
#include <stdarg.h>
#ifdef HAVE_AL_AL_H
#include <AL/al.h>
#include <AL/alc.h>
#elif defined(HAVE_OPENAL_AL_H)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#endif
#define NONAMELESSUNION
#define CINTERFACE
#define COBJMACROS
#include "windef.h"

View File

@ -21,6 +21,14 @@
#include <stdarg.h>
#ifdef HAVE_AL_AL_H
#include <AL/al.h>
#include <AL/alc.h>
#elif defined(HAVE_OPENAL_AL_H)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#endif
#define CINTERFACE
#define COBJMACROS
#include "windef.h"

View File

@ -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 <AL/al.h>
#include <AL/alc.h>
#elif defined(HAVE_OPENAL_AL_H)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#else
#error No OpenAL headers found?
#endif
#include "alext.h"
/* All openal functions */