Skip to content

Commit

Permalink
Fix CUdeviceptr definition for ARM64 CPU
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
mfkl authored and BtbN committed Sep 29, 2020
1 parent 12f99bb commit 47473e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ffnvcodec/dynlink_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 47473e9

Please sign in to comment.