summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-07-08 14:46:49 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2009-07-08 14:46:49 +0800
commitf5b058c0d22f2cc0458c19f2c24b5d6ed233d2e3 (patch)
treee1d710d8c50c619b2acb049545ea771488bf9fb8
parentfd3dcfaeebaf76165e6a8ba99de4fc2b8a16d66d (diff)
downloadlibva-f5b058c0d22f2cc0458c19f2c24b5d6ed233d2e3.tar.gz
test: Use IN_LIBVA, so that they can be built out of libva
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--test/test.c4
-rw-r--r--test/test_12.c5
-rw-r--r--test/test_common.c4
-rw-r--r--test/vainfo.c4
4 files changed, 17 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index 41972c7..2e98b12 100644
--- a/test/test.c
+++ b/test/test.c
@@ -22,7 +22,11 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#ifdef IN_LIBVA
#include <va_x11.h>
+#else
+#include <va/va_x11.h>
+#endif
#include "assert.h"
#include <stdarg.h>
diff --git a/test/test_12.c b/test/test_12.c
index 9bdc1ef..3c82476 100644
--- a/test/test_12.c
+++ b/test/test_12.c
@@ -24,7 +24,12 @@
#define TEST_DESCRIPTION "Sample MPEG2 VLD Decoding"
+#ifdef IN_LIBVA
#include <va_x11.h>
+#else
+#include <va/va_x11.h>
+#endif
+
#include "test_common.c"
#include <sys/types.h>
diff --git a/test/test_common.c b/test/test_common.c
index 6b63748..8a6ca9f 100644
--- a/test/test_common.c
+++ b/test/test_common.c
@@ -22,7 +22,11 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#ifdef IN_LIBVA
#include <va_x11.h>
+#else
+#include <va/va_x11.h>
+#endif
#include "assert.h"
#include <stdarg.h>
diff --git a/test/vainfo.c b/test/vainfo.c
index ed05881..79ee055 100644
--- a/test/vainfo.c
+++ b/test/vainfo.c
@@ -22,7 +22,11 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#ifdef IN_LIBVA
#include <va_x11.h>
+#else
+#include <va/va_x11.h>
+#endif
#include <stdarg.h>
#include <stdio.h>