diff options
author | Robin Gareus <robin@gareus.org> | 2019-10-02 23:14:58 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-10-02 23:14:58 +0200 |
commit | bc3b65834991b126843e85618c2f5d1d3c7e9389 (patch) | |
tree | d553956ae37d9d977ee3ff0c3c196638fa022a6e /libs | |
parent | 5ea54beff1fa0ad2d3e8181d97adbc6aa88df692 (diff) |
Prefer portable (MSVC?) getenv (amend 5ea54be)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/dsp_load_calculator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/dsp_load_calculator.h b/libs/ardour/ardour/dsp_load_calculator.h index fb6a34cfb5..5a7b3f0e45 100644 --- a/libs/ardour/ardour/dsp_load_calculator.h +++ b/libs/ardour/ardour/dsp_load_calculator.h @@ -20,6 +20,7 @@ #ifndef ARDOUR_DSP_LOAD_CALCULATOR_H #define ARDOUR_DSP_LOAD_CALCULATOR_H +#include <glib.h> #include <stdlib.h> #include <stdint.h> #include <cassert> @@ -36,7 +37,7 @@ public: , m_alpha(0) , m_dsp_load(0) { - m_calc_avg_load = NULL != getenv("ARDOUR_AVG_DSP_LOAD"); + m_calc_avg_load = NULL != g_getenv("ARDOUR_AVG_DSP_LOAD"); } void set_max_time(double samplerate, uint32_t period_size) { |