Skip to content

Commit

Permalink
Remove broken alsa/iatomic.h inclusion
Browse files Browse the repository at this point in the history
We don't support old compilers without proper atomicity
  • Loading branch information
pesintta committed Feb 19, 2018
1 parent bbc1c71 commit eee6994
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions iatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
///
/// SPDX-License-Identifier: AGPL-3.0-only

#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)

// gcc before 4.7 didn't support atomic builtins,
// use alsa atomic functions.
#if GCC_VERSION < 40700

#include <alsa/iatomic.h>

#else

//////////////////////////////////////////////////////////////////////////////
// Defines
//////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -71,5 +59,3 @@ typedef volatile int atomic_t;
///
#define atomic_sub(val, ptr) \
__atomic_sub_fetch(ptr, val, __ATOMIC_SEQ_CST)

#endif

0 comments on commit eee6994

Please sign in to comment.