diff options
author | Chris Robinson <[email protected]> | 2022-01-30 05:42:44 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-01-30 05:42:44 -0800 |
commit | 816bd8ab309dc0fe9afefcc5e3f2c294d3dc60a5 (patch) | |
tree | 75cf4b9c90bb3aa8d461b6a7dc417329bd2175d3 /alc/context.cpp | |
parent | c9d59ebc4a2c3566d34759a901be639b5f932e30 (diff) |
Move ALSOFT_EAX definition to config.h
And disable it by default for non-Windows targets
Diffstat (limited to 'alc/context.cpp')
-rw-r--r-- | alc/context.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/alc/context.cpp b/alc/context.cpp index d5fd94b2..33e9e7e0 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -29,7 +29,7 @@ #include "ringbuffer.h" #include "vecmat.h" -#if ALSOFT_EAX +#ifdef ALSOFT_EAX #include <cassert> #include <cstring> @@ -129,7 +129,7 @@ ALCcontext::~ALCcontext() mSourceList.clear(); mNumSources = 0; -#if ALSOFT_EAX +#ifdef ALSOFT_EAX eax_uninitialize(); #endif // ALSOFT_EAX @@ -172,7 +172,7 @@ void ALCcontext::init() mExtensionList = alExtList; -#if ALSOFT_EAX +#ifdef ALSOFT_EAX eax_initialize_extensions(); #endif // ALSOFT_EAX @@ -274,10 +274,8 @@ void ALCcontext::processUpdates() } } -#if ALSOFT_EAX -namespace -{ - +#ifdef ALSOFT_EAX +namespace { class ContextException : public EaxException |