diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-03 20:14:09 -0700 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-11 21:24:37 +0200 |
commit | 667fb97a650dcf9ad50327c7b51f8a95d1e16077 (patch) | |
tree | 576d130d4e9ce26c5b99d986ea2ef5473c27033c /libavcodec/fft-test.c | |
parent | 183b1c2268529bbb8389d572deb00083c49682dc (diff) | |
download | ffmpeg-667fb97a650dcf9ad50327c7b51f8a95d1e16077.tar.gz |
dct/fft-test: use a replacement getopt() if the system has none present.
This allows compiling and running these tests on systems lacking a built-
in version of getopt(), such as MSVC.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/fft-test.c')
-rw-r--r-- | libavcodec/fft-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c index 75941a1071..1e4675019c 100644 --- a/libavcodec/fft-test.c +++ b/libavcodec/fft-test.c @@ -34,7 +34,9 @@ #include "rdft.h" #endif #include <math.h> +#if HAVE_UNISTD_H #include <unistd.h> +#endif #include <stdlib.h> #include <string.h> @@ -229,6 +231,10 @@ enum tf_transform { TRANSFORM_DCT, }; +#if !HAVE_GETOPT +#include "compat/getopt.c" +#endif + int main(int argc, char **argv) { FFTComplex *tab, *tab1, *tab_ref; |