summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/X11/va_x11.h6
-rwxr-xr-xsrc/va_backend.h5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/X11/va_x11.h b/src/X11/va_x11.h
index e704de2..2171ac6 100755
--- a/src/X11/va_x11.h
+++ b/src/X11/va_x11.h
@@ -1,7 +1,11 @@
#ifndef _VA_X11_H_
#define _VA_X11_H_
-#include <va.h>
+#ifdef IN_LIBVA
+#include "va.h"
+#else
+#include <va/va.h>
+#endif
#include <X11/Xlib.h>
#ifdef __cplusplus
diff --git a/src/va_backend.h b/src/va_backend.h
index 7f1f6a2..b47e5ad 100755
--- a/src/va_backend.h
+++ b/src/va_backend.h
@@ -29,8 +29,13 @@
#ifndef _VA_BACKEND_H_
#define _VA_BACKEND_H_
+#ifdef IN_LIBVA
#include "va.h"
#include "X11/va_x11.h"
+#else
+#include <va/va.h>
+#include <X11/va_x11.h>
+#endif
#include <stdlib.h>