summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch')
-rw-r--r--media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch b/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch
new file mode 100644
index 000000000000..221ec825f174
--- /dev/null
+++ b/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch
@@ -0,0 +1,21 @@
+--- fidlib-0.9.10/fidlib.h
++++ fidlib-0.9.10/fidlib.h
+@@ -2,6 +2,10 @@
+ // fidlib include file
+ //
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ typedef struct FidFilter FidFilter;
+ struct FidFilter {
+ short typ; // Type of filter element 'I' IIR, 'F' FIR, or 0 for end of list
+@@ -66,3 +70,7 @@
+ extern void fid_run_zapbuf(void *buf);
+ extern void fid_run_freebuf(void *runbuf);
+ extern void fid_run_free(void *run);
++
++#ifdef __cplusplus
++}
++#endif