update usertrade to support g++
[lttv.git] / ltt-usertrace / ltt / ltt-usertrace-fast.h
index bfca0c10d5b994b4df5292bb02c7481e8ea1a865..b90a100629b43d221f156cb1ef061a1eaeaaad23 100644 (file)
 
 #include <ltt/ltt-facility-id-user_generic.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef        LTT_N_SUBBUFS
 #define LTT_N_SUBBUFS 2
 #endif //LTT_N_SUBBUFS
@@ -622,7 +626,10 @@ static inline void __attribute__((no_instrument_function)) ltt_commit_slot(
                ltt_deliver_callback(ltt_buf, SUBBUF_INDEX(offset_begin, ltt_buf), NULL);
        }
 }
-       
+
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
 
 #endif //LTT_TRACE_FAST
 #endif //LTT_TRACE
This page took 0.022954 seconds and 4 git commands to generate.