mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Do not include asm/atomic.h on some architectures.
This commit is contained in:
parent
3d2f333c6c
commit
135461daeb
1 changed files with 11 additions and 1 deletions
|
|
@ -29,12 +29,22 @@
|
|||
#include <byteswap.h>
|
||||
#include <time.h>
|
||||
#include <pthread.h>
|
||||
#include <asm/atomic.h>
|
||||
#include <dlfcn.h>
|
||||
#include "list.h"
|
||||
#include "pcm_local.h"
|
||||
#include "pcm_plugin.h"
|
||||
|
||||
#if defined(__sparc__) || defined __ia64__
|
||||
/* 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