Преглед на файлове

Add missing ifdef __cplusplus, thans Benoit Lize for the patch

Samuel Thibault преди 12 години
родител
ревизия
37b2eb9839
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      include/starpu_cublas.h

+ 8 - 0
include/starpu_cublas.h

@@ -18,8 +18,16 @@
 #ifndef __STARPU_CUBLAS_H__
 #define __STARPU_CUBLAS_H__
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /* Some helper functions for application using CUBLAS kernels */
 void starpu_helper_cublas_init(void);
 void starpu_helper_cublas_shutdown(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __STARPU_CUBLAS_H__ */