From f0cb505aeba32c821932f38696c10926cfc0a340 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 8 Jan 2008 22:54:49 +0000 Subject: [PATCH] Allow compilation of test programs when TEST is defined. Originally committed as revision 11473 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/integer.c | 2 +- libavutil/mathematics.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavutil/integer.c b/libavutil/integer.c index 89e6d50124..55dde412d4 100644 --- a/libavutil/integer.c +++ b/libavutil/integer.c @@ -156,7 +156,7 @@ int64_t av_i2int(AVInteger a){ return out; } -#if 0 +#ifdef TEST #undef NDEBUG #include diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c index 2ea35fc4f3..71d8ba7b1a 100644 --- a/libavutil/mathematics.c +++ b/libavutil/mathematics.c @@ -110,7 +110,8 @@ int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){ int64_t c= cq.num * (int64_t)bq.den; return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); } -#if 0 + +#ifdef TEST #include "integer.h" #undef printf main(void){