mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Cleaned atomic stuff
This commit is contained in:
parent
e4e3929325
commit
1bee1ded21
1 changed files with 1 additions and 11 deletions
|
|
@ -33,23 +33,13 @@
|
|||
#include <dlfcn.h>
|
||||
#include "pcm_local.h"
|
||||
#include "pcm_plugin.h"
|
||||
#include "iatomic.h"
|
||||
|
||||
#ifndef PIC
|
||||
/* entry for static linking */
|
||||
const char *_snd_module_pcm_meter = "";
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__) || defined(__ia64__) || defined(__mips__)
|
||||
/* asm/atomic.h is unavailable on sparc and ia64 */
|
||||
#define atomic_t int
|
||||
#define atomic_read(x) (*(x))
|
||||
#define atomic_dec(x) ((*(x))--)
|
||||
#define atomic_inc(x) ((*(x))++)
|
||||
#define atomic_set(x,i) (*(x) = (i))
|
||||
#else
|
||||
#include <asm/atomic.h>
|
||||
#endif
|
||||
|
||||
#ifndef DOC_HIDDEN
|
||||
#define FREQUENCY 50
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue