audio: define openal extensions in re3 owned namespace

This commit is contained in:
Anonymous Maarten
2020-12-06 23:22:02 +01:00
parent 66fc4e44fc
commit 5a1ea7bcf5
2 changed files with 18 additions and 0 deletions

View File

@@ -3,6 +3,14 @@
#ifdef AUDIO_OAL
/*
* When linking to a static openal-soft library,
* the extension function inside the openal library conflict with the variables here.
* Therefore declare these re3 owned symbols in a private namespace.
*/
namespace re3_openal {
LPALGENEFFECTS alGenEffects;
LPALDELETEEFFECTS alDeleteEffects;
LPALISEFFECT alIsEffect;
@@ -37,6 +45,9 @@ LPALGETFILTERIV alGetFilteriv;
LPALGETFILTERF alGetFilterf;
LPALGETFILTERFV alGetFilterfv;
}
using namespace re3_openal;
void EFXInit()
{