tests/utils_tests.h: make sure M_PI and RAND_MAX are defined
authorPaul Brossier <piem@piem.org>
Sat, 23 Apr 2016 16:35:52 +0000 (18:35 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 23 Apr 2016 16:35:52 +0000 (18:35 +0200)
tests/utils_tests.h

index edfe4f7..3791050 100644 (file)
 #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