projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
023aa32
)
tests/utils_tests.h: also use custom srandom/random when compiling with -std=c99
author
Paul Brossier
<piem@piem.org>
Fri, 13 May 2016 12:26:59 +0000
(14:26 +0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 13 May 2016 12:26:59 +0000
(14:26 +0200)
tests/utils_tests.h
patch
|
blob
|
history
diff --git
a/tests/utils_tests.h
b/tests/utils_tests.h
index
3791050
..
97d5297
100644
(file)
--- 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