update usertrade to support g++
[lttv.git] / ltt-usertrace / ltt / atomic-ppc.h
index ecd1f7571226054c8f0aec7638d49902e9b55fa1..d72731b9d98130406e3a4a5b6942a86522b2d1e2 100644 (file)
@@ -5,6 +5,10 @@
 #ifndef _ASM_PPC_ATOMIC_H_
 #define _ASM_PPC_ATOMIC_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct { volatile int counter; } atomic_t;
 
 #define ATOMIC_INIT(i) { (i) }
@@ -208,4 +212,8 @@ static __inline__ int atomic_dec_if_positive(atomic_t *v)
 #define smp_mb__before_atomic_inc()    __MB
 #define smp_mb__after_atomic_inc()     __MB
 
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
+
 #endif /* _ASM_PPC_ATOMIC_H_ */
This page took 0.028441 seconds and 4 git commands to generate.