Changes in tests/utils_tests.h [158e031:da632d3]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/utils_tests.h
r158e031 rda632d3 6 6 #include "config.h" 7 7 8 #ifdef HAVE_C99_VARARGS_MACROS 9 #define PRINT_ERR(...) fprintf(stderr, "AUBIO-TESTS ERROR: " __VA_ARGS__) 10 #define PRINT_MSG(...) fprintf(stdout, __VA_ARGS__) 11 #define PRINT_DBG(...) fprintf(stderr, __VA_ARGS__) 12 #define PRINT_WRN(...) fprintf(stderr, "AUBIO-TESTS WARNING: " __VA_ARGS__) 13 #else 8 14 #define PRINT_ERR(format, args...) fprintf(stderr, "AUBIO-TESTS ERROR: " format , ##args) 9 15 #define PRINT_MSG(format, args...) fprintf(stdout, format , ##args) 10 16 #define PRINT_DBG(format, args...) fprintf(stderr, format , ##args) 11 17 #define PRINT_WRN(format, args...) fprintf(stderr, "AUBIO-TESTS WARNING: " format, ##args) 18 #endif 12 19 13 #ifdef HAVE_WIN_HACKS 20 #ifndef M_PI 21 #define M_PI (3.14159265358979323846) 22 #endif 23 24 #ifndef RAND_MAX 25 #define RAND_MAX 32767 26 #endif 27 28 // are we on windows ? or are we using -std=c99 ? 29 #if defined(HAVE_WIN_HACKS) || defined(__STRICT_ANSI__) 14 30 // http://en.wikipedia.org/wiki/Linear_congruential_generator 15 31 // no srandom/random on win32
Note: See TracChangeset
for help on using the changeset viewer.