Allow cl_perf.h header to be included from C++ code. Signed-off-by: Fab Tillier <[email protected]>
diff -dwup3 -x *svn* -x *makefile.inc -x *sources -r
c:\dev\openib\ofw\gen1\branches\mlx4_30\trunk\inc\complib\cl_perf.h
.\inc\complib\cl_perf.h
--- c:\dev\openib\ofw\gen1\branches\mlx4_30\trunk\inc\complib\cl_perf.h Thu May
31 11:22:17 2012
+++ .\inc\complib\cl_perf.h Thu Jul 26 16:54:54 2012
@@ -762,6 +762,10 @@ cl_perf_stop(
* performance tracking.
*/
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/*
* Initialize the state of the performance tracking structure.
@@ -801,5 +805,8 @@ CL_EXPORT void CL_API
__cl_perf_display(
IN const cl_perf_t* const p_perf );
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
#endif /* _CL_PERF_H_ */
ndv2.23.patch
Description: ndv2.23.patch
_______________________________________________ ofw mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
