summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-01-13 23:44:16 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-01-13 23:44:16 +0000
commitb250f9c66d3ddd84652d158fb979a5f21e3f2c71 (patch)
treeef84366029d6f8af6ed82e90c5f188bb7dfc844d /cmdutils.c
parent959da985b03570cfe7d239c0ba6d550ecb04c460 (diff)
downloadffmpeg-b250f9c66d3ddd84652d158fb979a5f21e3f2c71.tar.gz
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 32ffefaf3b..20291aaba4 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -30,19 +30,19 @@
#include "config.h"
#include "libavformat/avformat.h"
-#ifdef CONFIG_AVFILTER
+#if CONFIG_AVFILTER
#include "libavfilter/avfilter.h"
#endif
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
-#ifdef CONFIG_POSTPROC
+#if CONFIG_POSTPROC
#include "libpostproc/postprocess.h"
#endif
#include "libavutil/avstring.h"
#include "libavcodec/opt.h"
#include "cmdutils.h"
#include "version.h"
-#ifdef CONFIG_NETWORK
+#if CONFIG_NETWORK
#include "libavformat/network.h"
#endif
@@ -255,7 +255,7 @@ void print_error(const char *filename, int err)
case AVERROR(ENOENT):
fprintf(stderr, "%s: no such file or directory\n", filename);
break;
-#ifdef CONFIG_NETWORK
+#if CONFIG_NETWORK
case AVERROR(FF_NETERROR(EPROTONOSUPPORT)):
fprintf(stderr, "%s: Unsupported network protocol\n", filename);
break;
@@ -279,13 +279,13 @@ static void print_all_lib_versions(FILE* outstream, int indent)
PRINT_LIB_VERSION(outstream, avcodec, AVCODEC, indent);
PRINT_LIB_VERSION(outstream, avformat, AVFORMAT, indent);
PRINT_LIB_VERSION(outstream, avdevice, AVDEVICE, indent);
-#ifdef CONFIG_AVFILTER
+#if CONFIG_AVFILTER
PRINT_LIB_VERSION(outstream, avfilter, AVFILTER, indent);
#endif
-#ifdef CONFIG_SWSCALE
+#if CONFIG_SWSCALE
PRINT_LIB_VERSION(outstream, swscale, SWSCALE, indent);
#endif
-#ifdef CONFIG_POSTPROC
+#if CONFIG_POSTPROC
PRINT_LIB_VERSION(outstream, postproc, POSTPROC, indent);
#endif
}
@@ -311,7 +311,7 @@ void show_version(void) {
void show_license(void)
{
-#ifdef CONFIG_NONFREE
+#if CONFIG_NONFREE
printf(
"This version of %s has nonfree parts compiled in.\n"
"Therefore it is not legally redistributable.\n",