Fix headless and debug build

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-11-15 23:33:21 +00:00
parent 6630dacd37
commit 818d9d3254
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
2 changed files with 4 additions and 2 deletions

View file

@ -22,6 +22,8 @@
#ifndef HEADLESS
# include "dgl/Base.hpp"
#else
# include "extra/LeakDetector.hpp"
#endif
// -----------------------------------------------------------------------------------------------------------

View file

@ -19,7 +19,7 @@
#include <cstring>
// fix blendish build, missing symbol in debug mode
#ifdef DEBUG
#ifndef NDEBUG
extern "C" {
float bnd_clamp(float v, float mn, float mx) {
return (v > mx)?mx:(v < mn)?mn:v;
@ -28,7 +28,7 @@ float bnd_clamp(float v, float mn, float mx) {
#endif
// fix bogaudio build, another missing symbol
#ifdef DEBUG
#ifndef NDEBUG
namespace bogaudio {
struct FollowerBase {
static float efGainMaxDecibelsDebug;