summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-04-17 10:33:04 -0600
committerJohn Stebbins <[email protected]>2019-04-17 11:25:13 -0600
commit76e9755eb71c500ba6a69c97c959f118873e5389 (patch)
treefef14dcd242551161bc077009537037b44d43fd6 /libhb/ports.c
parentb2cb27773a0cc1b84c847afec0b370e59236258d (diff)
qsv: use HB_PROJECT_FEATURE_QSV instead of USE_QSV
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 4a7a96fcf..8da7c2274 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -7,6 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
+#include "project.h"
+
#ifdef SYS_MINGW
#define _WIN32_WINNT 0x600
#endif
@@ -70,7 +72,7 @@
#include <linux/cdrom.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#ifdef USE_QSV
+#if HB_PROJECT_FEATURE_QSV
#include <libdrm/drm.h>
#endif
#elif defined( SYS_OPENBSD )
@@ -1513,7 +1515,7 @@ char * hb_strndup(const char * src, size_t len)
#endif
}
-#ifdef USE_QSV
+#if HB_PROJECT_FEATURE_QSV
#ifdef SYS_LINUX
#define MAX_NODES 16
@@ -1686,7 +1688,7 @@ void hb_display_close(hb_display_t ** _d)
}
#endif // SYS_LINUX
-#else // !USE_QSV
+#else // !HB_PROJECT_FEATURE_QSV
hb_display_t * hb_display_init(const char * driver_name,
const char * const * interface_names)
@@ -1699,4 +1701,4 @@ void hb_display_close(hb_display_t ** _d)
(void)_d;
}
-#endif // USE_QSV
+#endif // HB_PROJECT_FEATURE_QSV