diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-12-18 22:28:11 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-12-20 11:23:13 +0100 |
commit | e1b9de4fe15cda08cb18a2821a5729cf95e33d2a (patch) | |
tree | e1e306a18edb3ed1625cd262c61d791358713ec9 /libavutil/atomic.c | |
parent | 8558595a59913a4667f57d5a4658b1340f1a4354 (diff) | |
download | ffmpeg-e1b9de4fe15cda08cb18a2821a5729cf95e33d2a.tar.gz |
atomics: cosmetics: Restructure ifdefs for greater clarity
Also fix the #endif comment in a few places and #include config.h to
avoid assuming it is #included implicitly.
Diffstat (limited to 'libavutil/atomic.c')
-rw-r--r-- | libavutil/atomic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/atomic.c b/libavutil/atomic.c index add489a26e..e4fa957ba4 100644 --- a/libavutil/atomic.c +++ b/libavutil/atomic.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include "atomic.h" #if !HAVE_ATOMICS_NATIVE @@ -102,7 +103,7 @@ void *avpriv_atomic_ptr_cas(void * volatile *ptr, void *oldval, void *newval) #endif /* HAVE_PTHREADS */ -#endif /* !HAVE_MEMORYBARRIER && !HAVE_SYNC_VAL_COMPARE_AND_SWAP && !HAVE_MACHINE_RW_BARRIER */ +#endif /* !HAVE_ATOMICS_NATIVE */ #ifdef TEST #include <assert.h> |