aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/atomic_suncc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-03-08 11:16:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-03-08 20:54:40 +0100
commit309d6f5077e4b81cf519c004abace374f5d357b4 (patch)
tree36f1c2b1c0021be38b4eb1487a72bc833afa6040 /libavutil/atomic_suncc.h
parent160979f4b4cd06833a7a5c7fa8794e7a05095bce (diff)
downloadffmpeg-309d6f5077e4b81cf519c004abace374f5d357b4.tar.gz
atomic: Add include guards to the implementation headers
This makes them pass standalone compilation tests. Previously, they included atomic.h which included themselves again, leading to double definitions. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/atomic_suncc.h')
-rw-r--r--libavutil/atomic_suncc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/atomic_suncc.h b/libavutil/atomic_suncc.h
index 69cce41354..3cad24a051 100644
--- a/libavutil/atomic_suncc.h
+++ b/libavutil/atomic_suncc.h
@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef AVUTIL_ATOMIC_SUNCC_H
+#define AVUTIL_ATOMIC_SUNCC_H
+
#include <atomic.h>
#include <mbarrier.h>
@@ -49,3 +52,4 @@ static inline void *atomic_ptr_cas_suncc(void * volatile *ptr,
return atomic_cas_ptr(ptr, oldval, newval);
}
+#endif /* AVUTIL_ATOMIC_SUNCC_H */