Fix OpenAL on UNIX by wrapping the Windows headers with __WINDOWS__ (AL/al.h),

the OS X headers with __APPLE__ (OpenAL/AL.h).  The default will be the UNIX
location (AL/a.h).

Originally committed to SVN as r1908.
This commit is contained in:
Amar Takhar 2008-03-05 20:16:31 +00:00
parent f55ffd6d91
commit b62b58ed6f
2 changed files with 14 additions and 6 deletions

View file

@ -47,12 +47,16 @@
#include "frame_main.h"
#include "audio_player_openal.h"
#include "options.h"
#ifdef __APPLE__
#ifdef __WINDOWS__
#include <al.h>
#include <alc.h>
#elif defined(__APPLE__)
#include <OpenAL/AL.h>
#include <OpenAL/ALC.h>
#else
#include <al.h>
#include <alc.h>
#include <AL/al.h>
#include <AL/alc.h>
#endif

View file

@ -47,12 +47,16 @@
#include "frame_main.h"
#include "audio_player.h"
#include "options.h"
#ifdef __APPLE__
#ifdef __WINDOWS__
#include <al.h>
#include <alc.h>
#elif defined(__APPLE__)
#include <OpenAL/AL.h>
#include <OpenAL/ALC.h>
#else
#include <al.h>
#include <alc.h>
#include <AL/al.h>
#include <AL/alc.h>
#endif