]> git.alsa-project.org Git - alsa-lib.git/commit
Update iatomic.h functions definitions for mips
authorKai Kang <jiashuo.kang at gmail.com>
Thu, 15 Aug 2013 09:17:19 +0000 (17:17 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Aug 2013 08:40:32 +0000 (10:40 +0200)
commitf21f48a70f8437a671b58fcab75e54222a9eea16
tree9006016d0f64fceda4c4e468c7b0f09a0641a82e
parent4b169b05b48f4ea0196879b62b8c3fa5b050e806
Update iatomic.h functions definitions for mips

Functions atomic_add(s) and atomic_sub(s) are defined with 'extern
__inline__' that may cause compile fails when cross compile for mips.
The error message looks like:

| pcm/.libs/libpcm.a(pcm_meter.o): In function `snd_pcm_meter_update_scope':
| .../alsa-lib-1.0.27.2/src/pcm/pcm_meter.c:139: undefined reference to `atomic_sub'

Replace the 'extern __inline__' with 'static __inline__' to fix this
issue.

Signed-off-by: Kai Kang <jiashuo.kang at gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/iatomic.h