summaryrefslogtreecommitdiff
path: root/libavformat/file.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 /libavformat/file.c
parent959da985b03570cfe7d239c0ba6d550ecb04c460 (diff)
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 'libavformat/file.c')
-rw-r--r--libavformat/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index 827541d1ae..88ac4db8d4 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -22,7 +22,7 @@
#include "libavutil/avstring.h"
#include "avformat.h"
#include <fcntl.h>
-#ifdef HAVE_SETMODE
+#if HAVE_SETMODE
#include <io.h>
#endif
#include <unistd.h>
@@ -107,7 +107,7 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
fd = 0;
}
}
-#ifdef HAVE_SETMODE
+#if HAVE_SETMODE
setmode(fd, O_BINARY);
#endif
h->priv_data = (void *)(size_t)fd;