[MOVED FROM BAD 024/134] vp8: Undef HAVE_CONFIG_H before including libvpx headers

A public libvpx header includes private headers if this is
defined, causing compilation failures because the private headers
are not installed of course.
This commit is contained in:
Sebastian Dröge 2010-05-20 09:56:25 +02:00
parent 78fc2011db
commit 67adf511fd
3 changed files with 18 additions and 0 deletions

View file

@ -33,6 +33,12 @@
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
/* FIXME: Undef HAVE_CONFIG_H because vpx_codec.h uses it,
* which causes compilation failures */
#ifdef HAVE_CONFIG_H
#undef HAVE_CONFIG_H
#endif
#include <vpx/vpx_decoder.h> #include <vpx/vpx_decoder.h>
#include <vpx/vp8dx.h> #include <vpx/vp8dx.h>

View file

@ -34,6 +34,11 @@
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
/* FIXME: Undef HAVE_CONFIG_H because vpx_codec.h uses it,
* which causes compilation failures */
#ifdef HAVE_CONFIG_H
#undef HAVE_CONFIG_H
#endif
#include <vpx/vpx_encoder.h> #include <vpx/vpx_encoder.h>
#include <vpx/vp8cx.h> #include <vpx/vp8cx.h>

View file

@ -25,6 +25,13 @@
#endif #endif
#include <gst/gst.h> #include <gst/gst.h>
/* FIXME: Undef HAVE_CONFIG_H because vpx_codec.h uses it,
* which causes compilation failures */
#ifdef HAVE_CONFIG_H
#undef HAVE_CONFIG_H
#endif
#include <vpx/vpx_codec.h> #include <vpx/vpx_codec.h>
#include "gstvp8utils.h" #include "gstvp8utils.h"