summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-17 19:50:53 +0000
committerDavid Robillard <d@drobilla.net>2011-09-17 19:50:53 +0000
commit67ec55501fcb373a663d8347e821430ebd4501af (patch)
tree3107aa4521566c39b1aa1bede68208ba810c8bb4 /raul
parent8b460c2a36a6b9ea9ca13f33439111dd738a30bb (diff)
downloadraul-67ec55501fcb373a663d8347e821430ebd4501af.tar.gz
raul-67ec55501fcb373a663d8347e821430ebd4501af.tar.bz2
raul-67ec55501fcb373a663d8347e821430ebd4501af.zip
Add check for <atomic> header if C++0x is enabled.
Fix compilation with --c++0x --test. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3470 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r--raul/AtomicInt.hpp1
-rw-r--r--raul/AtomicPtr.hpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/raul/AtomicInt.hpp b/raul/AtomicInt.hpp
index 63d5071..a8e6714 100644
--- a/raul/AtomicInt.hpp
+++ b/raul/AtomicInt.hpp
@@ -34,6 +34,7 @@ public:
inline int get() const { return _val.load(); }
inline void operator=(int val) { _val = val; }
+ inline void operator=(const AtomicInt& val) { _val = val.get(); }
inline void operator+=(int val) { _val += val; }
diff --git a/raul/AtomicPtr.hpp b/raul/AtomicPtr.hpp
index 28797de..0de323c 100644
--- a/raul/AtomicPtr.hpp
+++ b/raul/AtomicPtr.hpp
@@ -18,6 +18,8 @@
#ifndef RAUL_ATOMIC_PTR_HPP
#define RAUL_ATOMIC_PTR_HPP
+#include <cstddef>
+
#ifdef RAUL_CPP0x
#include <atomic>