summaryrefslogtreecommitdiff
path: root/gr-fec
diff options
context:
space:
mode:
authorJaroslav Škarvada <jskarvad@redhat.com>2016-02-12 18:29:13 +0100
committerJohnathan Corgan <johnathan@corganlabs.com>2016-02-21 07:05:42 -0800
commita1cf11937665392bcfa223a5095ff903eb44c69b (patch)
treec81285f5708367faebec3d16a4e09f79b97ccb8b /gr-fec
parent252f6823fb24fa73ccbcbd6ec9ff07d880635d57 (diff)
Fix compilation in gcc-6
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Diffstat (limited to 'gr-fec')
-rw-r--r--gr-fec/include/gnuradio/fec/polar_decoder_common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-fec/include/gnuradio/fec/polar_decoder_common.h b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
index b0ecb85149..a39ee4f232 100644
--- a/gr-fec/include/gnuradio/fec/polar_decoder_common.h
+++ b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
@@ -28,6 +28,10 @@
#include <gnuradio/fec/generic_decoder.h>
#include <gnuradio/fec/polar_common.h>
+#ifndef BOOST_CONSTEXPR_OR_CONST
+#define BOOST_CONSTEXPR_OR_CONST const
+#endif
+
namespace gr {
namespace fec {
namespace code {
@@ -64,7 +68,7 @@ namespace gr {
bool set_frame_size(unsigned int frame_size){return false;};
private:
- static const float D_LLR_FACTOR = -2.19722458f;
+ static BOOST_CONSTEXPR_OR_CONST float D_LLR_FACTOR = -2.19722458f;
unsigned int d_frozen_bit_counter;
protected: