From: Paul Brossier Date: Fri, 13 May 2016 12:26:59 +0000 (+0200) Subject: tests/utils_tests.h: also use custom srandom/random when compiling with -std=c99 X-Git-Tag: 0.4.4~300^2~59 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=da632d3192f17db4e3b36120fc124f65fe7b3362 tests/utils_tests.h: also use custom srandom/random when compiling with -std=c99 --- diff --git a/tests/utils_tests.h b/tests/utils_tests.h index 3791050e..97d5297a 100644 --- a/tests/utils_tests.h +++ b/tests/utils_tests.h @@ -25,7 +25,8 @@ #define RAND_MAX 32767 #endif -#ifdef HAVE_WIN_HACKS +// are we on windows ? or are we using -std=c99 ? +#if defined(HAVE_WIN_HACKS) || defined(__STRICT_ANSI__) // http://en.wikipedia.org/wiki/Linear_congruential_generator // no srandom/random on win32