alsa/0005-Add-definition-of-__inline__-for-non-GCC.patch
Takashi Iwai ffcbf87b7a Accepting request 173315 from home:tiwai:branches:multimedia:libs
- Upstream fix for dlobj cache crash (bnc#814250)
  0001-Fix-doubly-call-of-dlclose-in-dlobj-caching-code.patch
- Upstream patches for support DSD
  0002-pcm.c-fix-indentation.patch
  0003-bring-pcm.h-and-pcm.c-in-sync-with-the-kernel-list.patch
- Fix compile errors with C90 (bnc#817077)
  0004-Use-__inline__-for-exported-headers.patch
  0005-Add-definition-of-__inline__-for-non-GCC.patch

OBS-URL: https://build.opensuse.org/request/show/173315
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=131
2013-04-25 08:05:10 +00:00

29 lines
692 B
Diff

From a8f405b8f90d752c3609b9e918dc949c4efadf87 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Thu, 25 Apr 2013 09:55:49 +0200
Subject: [PATCH 5/5] Add definition of __inline__ for non-GCC
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
include/asoundlib-head.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/asoundlib-head.h b/include/asoundlib-head.h
index 6edbab0..71b5c29 100644
--- a/include/asoundlib-head.h
+++ b/include/asoundlib-head.h
@@ -40,6 +40,10 @@
#include <errno.h>
#include <stdarg.h>
+#ifndef __GNUC__
+#define __inline__ inline
+#endif
+
#include <alsa/asoundef.h>
#include <alsa/version.h>
#include <alsa/global.h>
--
1.8.2.1