forked from mia/Aegisub
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:
parent
f55ffd6d91
commit
b62b58ed6f
2 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue