diff options
author | Josh Blum | 2011-07-20 18:06:44 -0700 |
---|---|---|
committer | Josh Blum | 2011-07-20 18:06:44 -0700 |
commit | 1e1798393381fe7472a7cdb5b2c3c90d7ae753fb (patch) | |
tree | a8c3288006f8a69259b05265e1520f400286d1f6 | |
parent | ed34b5a0c7daea43bfac330350bc0c7334b36c77 (diff) | |
download | gnuradio-1e1798393381fe7472a7cdb5b2c3c90d7ae753fb.tar.gz gnuradio-1e1798393381fe7472a7cdb5b2c3c90d7ae753fb.tar.bz2 gnuradio-1e1798393381fe7472a7cdb5b2c3c90d7ae753fb.zip |
core: declare erf in case it was missing in math.h and provided for by the build system
-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 9f958cab7..77c6a63c8 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)) |