'include/cuda/cuda.h': For C++, wrap in 'extern "C"'

include/
	* cuda/cuda.h: For C++, wrap in 'extern "C"'.
This commit is contained in:
Thomas Schwinge 2022-04-29 10:33:15 +02:00
parent ba8563693f
commit bdd1dc1bfb

View File

@ -32,6 +32,10 @@ the proprietary CUDA toolkit. */
#define CUDA_VERSION 8000
#ifdef __cplusplus
extern "C" {
#endif
typedef void *CUcontext;
typedef int CUdevice;
#if defined(__LP64__) || defined(_WIN64)
@ -191,4 +195,8 @@ CUresult cuStreamQuery (CUstream);
CUresult cuStreamSynchronize (CUstream);
CUresult cuStreamWaitEvent (CUstream, CUevent, unsigned);
#ifdef __cplusplus
}
#endif
#endif /* GCC_CUDA_H */