projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af274fd
)
Move #includes, which are only used in the test program, below the #ifdef
author
Diego Biurrun
<diego@biurrun.de>
Sun, 27 Jul 2008 21:05:12 +0000
(21:05 +0000)
committer
Diego Biurrun
<diego@biurrun.de>
Sun, 27 Jul 2008 21:05:12 +0000
(21:05 +0000)
surrounding the test program to save an #ifdef at the top of the file.
Originally committed as revision 14439 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/random.c
patch
|
blob
|
history
diff --git
a/libavutil/random.c
b/libavutil/random.c
index
2f73c19
..
d85b820
100644
(file)
--- a/
libavutil/random.c
+++ b/
libavutil/random.c
@@
-28,11
+28,6
@@
see http://en.wikipedia.org/wiki/Mersenne_twister for an explanation of this alg
#include <stdio.h>
#include "random.h"
-#ifdef TEST
-#include "common.h"
-#include "log.h"
-#endif
-
/* Period parameters */
#define M 397
@@
-80,6
+75,8
@@
void av_random_generate_untempered_numbers(AVRandomState *state)
}
#ifdef TEST
+#include "common.h"
+#include "log.h"
void main(void)
{
int x=0;