Browse Source

Fix headless and debug build

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
818d9d3254
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      plugins/Cardinal/src/plugincontext.hpp
  2. +2
    -2
      src/override/dep.cpp

+ 2
- 0
plugins/Cardinal/src/plugincontext.hpp View File

@@ -22,6 +22,8 @@


#ifndef HEADLESS #ifndef HEADLESS
# include "dgl/Base.hpp" # include "dgl/Base.hpp"
#else
# include "extra/LeakDetector.hpp"
#endif #endif


// ----------------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------------


+ 2
- 2
src/override/dep.cpp View File

@@ -19,7 +19,7 @@
#include <cstring> #include <cstring>


// fix blendish build, missing symbol in debug mode // fix blendish build, missing symbol in debug mode
#ifdef DEBUG
#ifndef NDEBUG
extern "C" { extern "C" {
float bnd_clamp(float v, float mn, float mx) { float bnd_clamp(float v, float mn, float mx) {
return (v > mx)?mx:(v < mn)?mn:v; return (v > mx)?mx:(v < mn)?mn:v;
@@ -28,7 +28,7 @@ float bnd_clamp(float v, float mn, float mx) {
#endif #endif


// fix bogaudio build, another missing symbol // fix bogaudio build, another missing symbol
#ifdef DEBUG
#ifndef NDEBUG
namespace bogaudio { namespace bogaudio {
struct FollowerBase { struct FollowerBase {
static float efGainMaxDecibelsDebug; static float efGainMaxDecibelsDebug;


Loading…
Cancel
Save