summaryrefslogtreecommitdiff
path: root/ivfenc.c
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2010-05-20 14:44:18 -0400
committerJohn Koleszar <jkoleszar@google.com>2010-05-21 05:53:48 -0400
commit1df0314e7b55b96ec56dd47baac68d06deff5491 (patch)
tree26e3f26006dd10a83cbaee40600f4bf8dcdea934 /ivfenc.c
parent6e12cc9411d5476adc820315492ab9e175c70727 (diff)
downloadlibvpx-1df0314e7b55b96ec56dd47baac68d06deff5491.tar
libvpx-1df0314e7b55b96ec56dd47baac68d06deff5491.tar.gz
libvpx-1df0314e7b55b96ec56dd47baac68d06deff5491.tar.bz2
libvpx-1df0314e7b55b96ec56dd47baac68d06deff5491.zip
configure: remove HAVE_CONFIG_H
This doesn't play well with autotools, and the preprocessor magic is confusing and unhelpful in the vp8-only context. Change-Id: I2fcb57e6eb7876ecb58509da608dc21f26077ff1
Diffstat (limited to 'ivfenc.c')
-rw-r--r--ivfenc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ivfenc.c b/ivfenc.c
index bef3d589b..6295a0466 100644
--- a/ivfenc.c
+++ b/ivfenc.c
@@ -11,7 +11,11 @@
/* This is a simple program that encodes YV12 files and generates ivf
* files using the new interface.
*/
-#define USE_POSIX_MMAP HAVE_SYS_MMAN_H
+#if defined(_MSC_VER)
+#define USE_POSIX_MMAP 0
+#else
+#define USE_POSIX_MMAP 1
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -25,9 +29,7 @@
#include <fcntl.h>
#include <unistd.h>
#endif
-#if CONFIG_VP8_ENCODER
#include "vp8cx.h"
-#endif
#include "vpx_ports/mem_ops.h"
#include "vpx_ports/vpx_timer.h"