aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2022-04-29 10:33:15 +0200
committerThomas Schwinge <thomas@codesourcery.com>2022-05-18 12:06:20 +0200
commitbdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab (patch)
treea2cfa9189b68c7ed0c4b37d8c7c4b25ea9e10363 /include
parentba8563693fb4eb1317fcbd54883516c3873782f4 (diff)
downloadgcc-bdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab.zip
gcc-bdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab.tar.gz
gcc-bdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab.tar.bz2
'include/cuda/cuda.h': For C++, wrap in 'extern "C"'
include/ * cuda/cuda.h: For C++, wrap in 'extern "C"'.
Diffstat (limited to 'include')
-rw-r--r--include/cuda/cuda.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cuda/cuda.h b/include/cuda/cuda.h
index 5c813ad..d7105fb 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 */