# HG changeset patch # User michael # Date 1217191824 0 # Node ID a5c3bc3dcd3e8979936ff55abb68c837848084cc # Parent 6ebdeca51ff4a24b3e4f4e0f7cea26707e989761 Make the selftesting code use and compileable. diff -r 6ebdeca51ff4 -r a5c3bc3dcd3e random.c --- a/random.c Thu Jul 24 17:09:28 2008 +0000 +++ b/random.c Sun Jul 27 20:50:24 2008 +0000 @@ -28,9 +28,7 @@ #include #include "random.h" -//#define DEBUG - -#ifdef DEBUG +#ifdef TEST #include "common.h" #include "log.h" #endif @@ -81,8 +79,8 @@ state->index = 0; } -#ifdef DEBUG -void av_benchmark_random(void) +#ifdef TEST +void main(void) { int x=0; int i, j; diff -r 6ebdeca51ff4 -r a5c3bc3dcd3e random.h --- a/random.h Thu Jul 24 17:09:28 2008 +0000 +++ b/random.h Sun Jul 27 20:50:24 2008 +0000 @@ -63,7 +63,4 @@ return av_random(state) * (1.0 / 4294967296.0); } -// only available if DEBUG is defined in the .c file -void av_benchmark_random(void); - #endif /* FFMPEG_RANDOM_H */