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:
ad1ffb5
)
tests/utils_tests.h: make sure M_PI and RAND_MAX are defined
author
Paul Brossier
<piem@piem.org>
Sat, 23 Apr 2016 16:35:52 +0000
(18:35 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 23 Apr 2016 16:35:52 +0000
(18:35 +0200)
tests/utils_tests.h
patch
|
blob
|
history
diff --git
a/tests/utils_tests.h
b/tests/utils_tests.h
index
edfe4f7
..
3791050
100644
(file)
--- a/
tests/utils_tests.h
+++ b/
tests/utils_tests.h
@@
-17,6
+17,14
@@
#define PRINT_WRN(format, args...) fprintf(stderr, "AUBIO-TESTS WARNING: " format, ##args)
#endif
+#ifndef M_PI
+#define M_PI (3.14159265358979323846)
+#endif
+
+#ifndef RAND_MAX
+#define RAND_MAX 32767
+#endif
+
#ifdef HAVE_WIN_HACKS
// http://en.wikipedia.org/wiki/Linear_congruential_generator
// no srandom/random on win32