aboutsummaryrefslogtreecommitdiff
path: root/include/cuda/cuda.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cuda/cuda.h')
-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 */