diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2014-07-08 07:22:36 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2014-07-08 07:26:36 -0700 |
commit | b5006c14e4351d32d033fa13a17925e83ba6a0f6 (patch) | |
tree | 186024d7b6e8a3d926f3103df6220e1e6432ff28 /gr-qtgui/lib/ber_sink_b_impl.cc | |
parent | 3d6dc9c0ddb34d923b55a300bdd1356ce5b9a654 (diff) |
Windows compatibility fixes
* fec/ber_tools: added include and #define necessary to use M_PI
* qtgui: changed erfc to boost::math::erfc
* volk: don't try to align with MSVC
Diffstat (limited to 'gr-qtgui/lib/ber_sink_b_impl.cc')
-rw-r--r-- | gr-qtgui/lib/ber_sink_b_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/lib/ber_sink_b_impl.cc b/gr-qtgui/lib/ber_sink_b_impl.cc index bcbe146e80..61dec2573a 100644 --- a/gr-qtgui/lib/ber_sink_b_impl.cc +++ b/gr-qtgui/lib/ber_sink_b_impl.cc @@ -21,11 +21,11 @@ */ #include "ber_sink_b_impl.h" +#include <boost/math/special_functions/erf.hpp> #include <gnuradio/io_signature.h> #include <gnuradio/math.h> #include <gnuradio/fft/fft.h> #include <volk/volk.h> -//#include <math.h> #ifdef HAVE_CONFIG_H #include <config.h> @@ -90,7 +90,7 @@ namespace gr { for(size_t i = 0; i < esnos.size(); i++) { double e = pow(10.0, esnos[i]/10.0); d_esno_buffers[curves][i] = esnos[i]; - d_ber_buffers[curves][i] = log10(erfc(sqrt(e))); + d_ber_buffers[curves][i] = log10(boost::math::erfc(sqrt(e))); } |