summaryrefslogtreecommitdiff
path: root/third_party/resample/include/resamplesubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/resample/include/resamplesubs.h')
-rw-r--r--third_party/resample/include/resamplesubs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/resample/include/resamplesubs.h b/third_party/resample/include/resamplesubs.h
index ab0771b6..c81d715a 100644
--- a/third_party/resample/include/resamplesubs.h
+++ b/third_party/resample/include/resamplesubs.h
@@ -13,12 +13,20 @@ typedef unsigned int RES_UWORD;
# define DECL(T) T
#endif
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
DECL(int) res_SrcLinear(const RES_HWORD X[], RES_HWORD Y[],
double pFactor, RES_UHWORD nx);
DECL(int) res_Resample(const RES_HWORD X[], RES_HWORD Y[], double pFactor,
RES_UHWORD nx, RES_BOOL LargeF, RES_BOOL Interp);
DECL(int) res_GetXOFF(double pFactor, RES_BOOL LargeF);
+#ifdef __cplusplus
+}
+#endif
#endif