mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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
@ -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…
x
Reference in New Issue
Block a user