update usertrade to support g++
[lttv.git] / ltt-usertrace / ltt / atomic-ppc64.h
index 0e5f25e83bc0f7445a829ab22126a1a672214bb4..5de019862803807f19e58fdab5460baaffdc5f33 100644 (file)
 
 #include <asm/memory.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct { volatile int counter; } atomic_t;
 
 #define ATOMIC_INIT(i) { (i) }
@@ -194,4 +198,8 @@ static __inline__ int atomic_dec_if_positive(atomic_t *v)
 #define smp_mb__before_atomic_inc()     smp_mb()
 #define smp_mb__after_atomic_inc()      smp_mb()
 
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
+
 #endif /* _ASM_PPC64_ATOMIC_H_ */
This page took 0.021953 seconds and 4 git commands to generate.