aboutsummaryrefslogtreecommitdiffstats
path: root/include/atomic.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-29 04:22:30 -0700
committerChris Robinson <[email protected]>2014-05-29 04:22:30 -0700
commit1d45c439b83565699a1fc220dc7f34c9ceb11a7e (patch)
tree2a1e92e023d270a30da1dc1b06b3bdb205fe6462 /include/atomic.h
parent73614f228eda86e9dc074540989a11a4fd7fb9e9 (diff)
Add extern "C" to common headers.
Diffstat (limited to 'include/atomic.h')
-rw-r--r--include/atomic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/atomic.h b/include/atomic.h
index 87a02f7b..4adb7a94 100644
--- a/include/atomic.h
+++ b/include/atomic.h
@@ -3,6 +3,9 @@
#include "static_assert.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef void *volatile XchgPtr;
@@ -198,4 +201,8 @@ inline void *CompExchangePtr(XchgPtr *ptr, void *oldval, void *newval)
#error "No atomic functions available on this platform!"
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* AL_ATOMIC_H */