summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/float_array_to_int.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib/float_array_to_int.cc')
-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;