tests/utils_tests.h: also use custom srandom/random when compiling with -std=c99
authorPaul Brossier <piem@piem.org>
Fri, 13 May 2016 12:26:59 +0000 (14:26 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 13 May 2016 12:26:59 +0000 (14:26 +0200)
tests/utils_tests.h

index 3791050..97d5297 100644 (file)
@@ -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