ref: da632d3192f17db4e3b36120fc124f65fe7b3362
parent: 023aa3209a1edcb68c5cacaa5c041d744a5bc2bd
author: Paul Brossier <piem@piem.org>
date: Fri May 13 10:26:59 EDT 2016
tests/utils_tests.h: also use custom srandom/random when compiling with -std=c99
--- 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