From 72b9e6ca3c156772fa7c047844d081a198aa4e27 Mon Sep 17 00:00:00 2001
From: Martin Finkel <me@martinfinkel.com>
Date: Tue, 29 Sep 2020 14:19:27 +0200
Subject: [PATCH 1/1] Fix CUdeviceptr definition for ARM64 CPU

When building VLC for UWP ARM64 with aarch64-w64-mingw32 from the llvm-mingw toolchain,
this patch fixes the error: incompatible pointer types passing 'CUdeviceptr *' (aka 'unsigned int *')
to parameter of type 'unsigned long long *' [-Werror,-Wincompatible-pointer-types]
---
 include/ffnvcodec/dynlink_cuda.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ffnvcodec/dynlink_cuda.h b/include/ffnvcodec/dynlink_cuda.h
index 8e64d7e..bb0edd2 100644
--- a/include/ffnvcodec/dynlink_cuda.h
+++ b/include/ffnvcodec/dynlink_cuda.h
@@ -41,7 +41,7 @@
 #define CU_CTX_SCHED_BLOCKING_SYNC 4
 
 typedef int CUdevice;
-#if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) || defined(__LP64__)
+#if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) || defined(__LP64__) || defined(__aarch64__)
 typedef unsigned long long CUdeviceptr;
 #else
 typedef unsigned int CUdeviceptr;
-- 
2.25.1.windows.1

