From b32e85fa42678b061f30fa6fc52e0713d980a6df Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 19 Jan 2017 16:53:51 +0100 Subject: [PATCH] cuda.h (CUdeviceptr): Typedef to unsigned long long even for _WIN64. * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even for _WIN64. From-SVN: r244638 --- libgomp/ChangeLog | 5 +++++ libgomp/plugin/cuda/cuda.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 3708c3e7593..d1c1ae1bb91 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2017-01-19 Jakub Jelinek + + * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even + for _WIN64. + 2017-01-17 Jakub Jelinek * plugin/hsa.h: Add GCC runtime library exception. diff --git a/libgomp/plugin/cuda/cuda.h b/libgomp/plugin/cuda/cuda.h index eb92b18f745..25d5d1913b0 100644 --- a/libgomp/plugin/cuda/cuda.h +++ b/libgomp/plugin/cuda/cuda.h @@ -35,7 +35,7 @@ libcuda.so.1 are not available. */ typedef void *CUcontext; typedef int CUdevice; -#ifdef __LP64__ +#if defined(__LP64__) || defined(_WIN64) typedef unsigned long long CUdeviceptr; #else typedef unsigned CUdeviceptr; -- 2.30.2