+2022-07-05 Tobias Burnus <tobias@codesourcery.com>
+
+ Backport from mainline:
+ 2022-05-18 Thomas Schwinge <thomas@codesourcery.com>
+
+ * cuda/cuda.h: For C++, wrap in 'extern "C"'.
+
2022-07-04 Tobias Burnus <tobias@codesourcery.com>
Backport from mainline:
#define CUDA_VERSION 8000
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef void *CUcontext;
typedef int CUdevice;
#if defined(__LP64__) || defined(_WIN64)
CUresult cuStreamSynchronize (CUstream);
CUresult cuStreamWaitEvent (CUstream, CUevent, unsigned);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* GCC_CUDA_H */