[ofw] [PATCH] [COMPLIB] allow C++ programs to link using complib performance counters.

Smith, Stan stan.smith at intel.com
Tue Dec 21 17:16:31 PST 2010


'#define PERF_TRACK_ON 1' is not enough to allow C++ programs to find complib cl_perf_xxx() routines...

signed-off-by: stan smith <stan.smith at intel.com>

--- A/inc/complib/cl_perf.h     Tue Dec 21 17:09:11 2010
+++ B/inc/complib/cl_perf.h     Thu Dec 16 09:18:14 2010
@@ -764,7 +764,10 @@
  * performance tracking.
  */

-
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /*
  * Initialize the state of the performance tracking structure.
  */
@@ -803,5 +806,8 @@
 __cl_perf_display(
        IN      const cl_perf_t* const  p_perf );

+#ifdef __cplusplus
+}      /* extern "C" */
+#endif

 #endif /* _CL_PERF_H_ */



More information about the ofw mailing list