summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Horvath <ejcspii@gmail.com>2018-06-05 13:03:31 +0200
committerMarcus Müller <marcus@hostalia.de>2018-06-07 22:35:14 +0200
commit351dfb8ec4b07dddbd921f994c2bfd89cc35eadf (patch)
tree84f62dbf203dfe7b20781d8afcc48b7d989ae556
parentbbc9e6b43d15bb15e005c4e17eda409cfa4460b7 (diff)
Ensure that stdint is found in float_array_to_int
-rw-r--r--gr-blocks/lib/float_array_to_int.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gr-blocks/lib/float_array_to_int.cc b/gr-blocks/lib/float_array_to_int.cc
index 4fee3211e2..46f78db19e 100644
--- a/gr-blocks/lib/float_array_to_int.cc
+++ b/gr-blocks/lib/float_array_to_int.cc
@@ -27,7 +27,12 @@
#define _ISOC9X_SOURCE
#include <float_array_to_int.h>
#include <math.h>
+#if __cplusplus >= 201103L
#include <cstdint>
+using std::int64_t;
+#else
+#include <stdint.h>
+#endif
static const int64_t MAX_INT = INT32_MAX;
static const int64_t MIN_INT = INT32_MIN;