diff options
author | Martin Storsjö <martin@martin.st> | 2013-03-08 11:16:14 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-03-08 12:00:06 +0200 |
commit | 2240e92f052960693de55cf4924e80426dfaa965 (patch) | |
tree | 27701da9eee098f09371863f02770b91c13f0359 /libavutil/atomic_win32.h | |
parent | 7c45087b8441441fc929a6df363f6fa010ef23b0 (diff) | |
download | ffmpeg-2240e92f052960693de55cf4924e80426dfaa965.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_win32.h')
-rw-r--r-- | libavutil/atomic_win32.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/atomic_win32.h b/libavutil/atomic_win32.h index 6ae61f6c4d..84e8b7f0c1 100644 --- a/libavutil/atomic_win32.h +++ b/libavutil/atomic_win32.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVUTIL_ATOMIC_WIN32_H +#define AVUTIL_ATOMIC_WIN32_H + #include <windows.h> #include "atomic.h" @@ -48,3 +51,5 @@ static inline void *atomic_ptr_cas_win32(void * volatile *ptr, { return InterlockedCompareExchangePointer(ptr, newval, oldval); } + +#endif /* AVUTIL_ATOMIC_WIN32_H */ |