1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 15:45:54 +01:00

Make patch describing change in portaudio source at 38fd97b

This commit is contained in:
Paul Licameli
2017-10-25 14:13:00 -04:00
parent 72dec607bb
commit 41f191453f
2 changed files with 29 additions and 0 deletions

View File

@@ -179,6 +179,8 @@ build system break. Not suitable for upstream, what is needed is more
powerful autoconf features to pass the right options to portaudio's configure powerful autoconf features to pass the right options to portaudio's configure
script, which suffers from the broken-ness of autoconf's subdirectory support script, which suffers from the broken-ness of autoconf's subdirectory support
* linkage.patch allows compilation as C++ with correct "C" linkage of one function
portmidi portmidi
------- -------
http://portmedia.sourceforge.net/ http://portmedia.sourceforge.net/

View File

@@ -0,0 +1,27 @@
diff --git a/lib-src/portaudio-v19/src/os/unix/pa_unix_util.c b/lib-src/portaudio-v19/src/os/unix/pa_unix_util.c
index 18f806c..7f4fd540 100644
--- a/lib-src/portaudio-v19/src/os/unix/pa_unix_util.c
+++ b/lib-src/portaudio-v19/src/os/unix/pa_unix_util.c
@@ -154,6 +154,10 @@ void PaUtil_InitializeClock( void )
}
+#ifdef __cplusplus
+extern "C" {
+#endif
+
PaTime PaUtil_GetTime( void )
{
#ifdef HAVE_MACH_ABSOLUTE_TIME
@@ -169,6 +173,10 @@ PaTime PaUtil_GetTime( void )
#endif
}
+#ifdef __cplusplus
+}
+#endif
+
PaError PaUtil_InitializeThreading( PaUtilThreading *threading )
{
(void) paUtilErr_;