summaryrefslogtreecommitdiff
path: root/gr-analog
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-11-11 11:57:33 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2016-11-11 11:57:33 -0800
commit7b0dfd802aa08c4d0aefde2df0361304d8f282f4 (patch)
tree791fac3a88a87bcde378fabb10432fbbbf19ba93 /gr-analog
parent38826d66d239aaea376bc315dee2a6c1bd33de52 (diff)
parentfd3227859623f8f2a294ce1b8c38489eb1415eea (diff)
Merge branch 'maint'
Diffstat (limited to 'gr-analog')
-rw-r--r--gr-analog/lib/fastnoise_source_X_impl.cc.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-analog/lib/fastnoise_source_X_impl.cc.t b/gr-analog/lib/fastnoise_source_X_impl.cc.t
index 21f963b65a..940918b11b 100644
--- a/gr-analog/lib/fastnoise_source_X_impl.cc.t
+++ b/gr-analog/lib/fastnoise_source_X_impl.cc.t
@@ -144,7 +144,7 @@ namespace gr {
@TYPE@ @IMPL_NAME@::sample()
{
-#ifdef __USE_GNU
+#ifdef HAVE_RAND48
size_t idx = lrand48() % d_samples.size();
#else
size_t idx = rand() % d_samples.size();
@@ -153,7 +153,7 @@ namespace gr {
}
#ifndef FASTNOISE_RANDOM_SIGN
-#ifdef _MSC_VER
+#ifndef HAVE_RAND48
#define FASTNOISE_RANDOM_SIGN ((rand()%2==0)?1:-1)
#else
#define FASTNOISE_RANDOM_SIGN ((lrand48()%2==0)?1:-1)