projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update usertrade to support g++
[lttv.git]
/
ltt-usertrace
/
ltt
/
atomic-ppc64.h
diff --git
a/ltt-usertrace/ltt/atomic-ppc64.h
b/ltt-usertrace/ltt/atomic-ppc64.h
index 0e5f25e83bc0f7445a829ab22126a1a672214bb4..5de019862803807f19e58fdab5460baaffdc5f33 100644
(file)
--- a/
ltt-usertrace/ltt/atomic-ppc64.h
+++ b/
ltt-usertrace/ltt/atomic-ppc64.h
@@
-15,6
+15,10
@@
#include <asm/memory.h>
#include <asm/memory.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct { volatile int counter; } atomic_t;
#define ATOMIC_INIT(i) { (i) }
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()
#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_ */
#endif /* _ASM_PPC64_ATOMIC_H_ */
This page took
0.030796 seconds
and
4
git commands to generate.