From 816bd8ab309dc0fe9afefcc5e3f2c294d3dc60a5 Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Sun, 30 Jan 2022 05:42:44 -0800
Subject: Move ALSOFT_EAX definition to config.h

And disable it by default for non-Windows targets
---
 al/effects/vmorpher.cpp | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

(limited to 'al/effects/vmorpher.cpp')

diff --git a/al/effects/vmorpher.cpp b/al/effects/vmorpher.cpp
index 2a9e0702..2ea2594e 100644
--- a/al/effects/vmorpher.cpp
+++ b/al/effects/vmorpher.cpp
@@ -10,7 +10,7 @@
 #include "aloptional.h"
 #include "effects.h"
 
-#if ALSOFT_EAX
+#ifdef ALSOFT_EAX
 #include <cassert>
 
 #include "alnumeric.h"
@@ -257,10 +257,8 @@ DEFINE_ALEFFECT_VTABLE(Vmorpher);
 
 const EffectProps VmorpherEffectProps{genDefaultProps()};
 
-#if ALSOFT_EAX
-namespace
-{
-
+#ifdef ALSOFT_EAX
+namespace {
 
 using EaxVocalMorpherEffectDirtyFlagsValue = std::uint_least8_t;
 
@@ -859,7 +857,6 @@ bool EaxVocalMorpherEffect::set(
     return false;
 }
 
-
 } // namespace
 
 
@@ -869,5 +866,4 @@ EaxEffectUPtr eax_create_eax_vocal_morpher_effect(
     return std::make_unique<EaxVocalMorpherEffect>(al_effect_props);
 }
 
-
 #endif // ALSOFT_EAX
-- 
cgit v1.2.3