diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-20 18:06:44 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-20 18:06:44 -0700 |
commit | 1e1798393381fe7472a7cdb5b2c3c90d7ae753fb (patch) | |
tree | a8c3288006f8a69259b05265e1520f400286d1f6 /gnuradio-core/src | |
parent | ed34b5a0c7daea43bfac330350bc0c7334b36c77 (diff) |
core: declare erf in case it was missing in math.h and provided for by the build system
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/viterbi/metrics.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/viterbi/metrics.c b/gnuradio-core/src/lib/viterbi/metrics.c index 9f958cab76..77c6a63c86 100644 --- a/gnuradio-core/src/lib/viterbi/metrics.c +++ b/gnuradio-core/src/lib/viterbi/metrics.c @@ -42,6 +42,9 @@ #include <stdlib.h> #include <math.h> +//declare erf in case it was missing in math.h and provided for by the build system +extern double erf(double x); + /* Normal function integrated from -Inf to x. Range: 0-1 */ #define normal(x) (0.5 + 0.5*erf((x)/M_SQRT2)) |