From: Thomas Schwinge Date: Fri, 29 Apr 2022 08:33:15 +0000 (+0200) Subject: 'include/cuda/cuda.h': For C++, wrap in 'extern "C"' X-Git-Tag: basepoints/gcc-14~6592 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab;p=thirdparty%2Fgcc.git 'include/cuda/cuda.h': For C++, wrap in 'extern "C"' include/ * cuda/cuda.h: For C++, wrap in 'extern "C"'. --- diff --git a/include/cuda/cuda.h b/include/cuda/cuda.h index 5c813ad2cf81..d7105fb331e8 100644 --- a/include/cuda/cuda.h +++ b/include/cuda/cuda.h @@ -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 */