diff options
author | Paul Cercueil <paul.cercueil@analog.com> | 2016-11-09 11:40:17 +0100 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-11-11 11:40:03 -0800 |
commit | fd3227859623f8f2a294ce1b8c38489eb1415eea (patch) | |
tree | 2e0f2521c58571e14b29be2bf872cca0f7ca6980 /gr-analog | |
parent | 9fd93c0a940feb6afb7ff587c8b3b17920aedf12 (diff) |
Add config check for Xrand48() functions
This fixes some compile errors under MinGW, which does not provide those
functions.
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Diffstat (limited to 'gr-analog')
-rw-r--r-- | gr-analog/lib/fastnoise_source_X_impl.cc.t | 4 |
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) |