Skip to content
Snippets Groups Projects
Commit f414e30c authored by Nirbheek Chauhan's avatar Nirbheek Chauhan :ant:
Browse files

spandsp.recipe: Allow using the public API from MSVC

parent 24c8c272
No related branches found
No related tags found
No related merge requests found
......@@ -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']
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment