diff options
author | Martin Storsjö <martin@martin.st> | 2012-11-29 17:02:42 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-11-29 18:19:57 +0200 |
commit | 15816c8e8bd5ab2f027824ea5122d7901633634a (patch) | |
tree | 9afa4ea47fe263f7b7d985517378becce3469de1 | |
parent | 15caccb9be2a50ffe0dabd3202bcc272d1d7ff1d (diff) | |
download | ffmpeg-15816c8e8bd5ab2f027824ea5122d7901633634a.tar.gz |
avutil: Include io.h with a separate condition from MapViewOfFile
The existence of MapViewOfFile isn't linked to the existence of
io.h.
Not all versions of windows have MapViewOfFile (in particular,
Windows Phone 8 and the "metro" windows 8 API subset don't),
while they still have io.h (and need it for open/read/close).
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavutil/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/file.c b/libavutil/file.c index 41bd0ddf58..ce02487f35 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -25,10 +25,12 @@ #if HAVE_UNISTD_H #include <unistd.h> #endif +#if HAVE_IO_H +#include <io.h> +#endif #if HAVE_MMAP #include <sys/mman.h> #elif HAVE_MAPVIEWOFFILE -#include <io.h> #include <windows.h> #endif |