update usertrade to support g++
[lttv.git] / ltt-usertrace / ltt / system-ppc.h
index a4498e758938aa0bb32b5f5b75fea8edf73b18e2..bb842f1a1ceec8af1c13dab5835d926b7b438d12 100644 (file)
@@ -7,6 +7,10 @@
 #include <asm/atomic.h>
 #include <asm/hw_irq.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Memory barrier.
  * The sync instruction guarantees that all memory accesses initiated
@@ -147,4 +151,8 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size)
 
 #define arch_align_stack(x) (x)
 
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
+
 #endif /* __PPC_SYSTEM_H */
This page took 0.022724 seconds and 4 git commands to generate.