summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-02-22 02:08:26 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2019-02-22 02:08:26 +0530
commitf414e30c74565ad3ee2c964626f2c8e4aaf05e66 (patch)
tree73e317002c157e34633f33b9c3572279427dde2f
parent24c8c2720a82d1790bcb9bb0c1ba85ec357b3fbf (diff)
spandsp.recipe: Allow using the public API from MSVC
-rw-r--r--recipes/spandsp.recipe3
-rw-r--r--recipes/spandsp/0001-Make-the-public-API-accessible-from-MSVC.patch28
2 files changed, 30 insertions, 1 deletions
diff --git a/recipes/spandsp.recipe b/recipes/spandsp.recipe
index 05fee449..c5cc1d95 100644
--- a/recipes/spandsp.recipe
+++ b/recipes/spandsp.recipe
@@ -14,7 +14,8 @@ class Recipe(recipe.Recipe):
patches = [ 'spandsp/0001-spandsp-do-not-compile-has_X86FEATURE-symbols.patch',
'spandsp/0002-Define-LIBSPANDSP_EXPORTS-when-building-the-spandsp-.patch',
'spandsp/0003-Use-BUILT_SOURCES-to-generate-extra-headers.patch',
- 'spandsp/0001-Don-t-do-a-whereis-which-dance-to-find-which.patch']
+ 'spandsp/0001-Don-t-do-a-whereis-which-dance-to-find-which.patch',
+ 'spandsp/0001-Make-the-public-API-accessible-from-MSVC.patch',]
files_libs = ['libspandsp']
files_devel = ['include/spandsp', 'include/spandsp.h', 'lib/pkgconfig/spandsp.pc']
diff --git a/recipes/spandsp/0001-Make-the-public-API-accessible-from-MSVC.patch b/recipes/spandsp/0001-Make-the-public-API-accessible-from-MSVC.patch
new file mode 100644
index 00000000..f3e1101a
--- /dev/null
+++ b/recipes/spandsp/0001-Make-the-public-API-accessible-from-MSVC.patch
@@ -0,0 +1,28 @@
+From b982ae2ea0e87509b22c6a19c229b0a55f8e8be8 Mon Sep 17 00:00:00 2001
+From: Nirbheek Chauhan <nirbheek@centricular.com>
+Date: Fri, 22 Feb 2019 02:04:10 +0530
+Subject: [PATCH] Make the public API accessible from MSVC
+
+__inline__ is __inline on MSVC.
+---
+ src/spandsp/complex.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/spandsp/complex.h b/src/spandsp/complex.h
+index af98c07..82cead8 100644
+--- a/src/spandsp/complex.h
++++ b/src/spandsp/complex.h
+@@ -36,6 +36,10 @@ widespread.
+ #if !defined(_SPANDSP_COMPLEX_H_)
+ #define _SPANDSP_COMPLEX_H_
+
++#ifdef _MSC_VER
++#define __inline__ __inline
++#endif
++
+ /*!
+ Floating complex type.
+ */
+--
+2.20.1.windows.1
+