diff options
-rw-r--r-- | pjmedia/src/pjmedia/g711.c | 1 | ||||
-rw-r--r-- | pjmedia/src/pjmedia/transport_srtp.c | 7 | ||||
-rw-r--r-- | third_party/resample/include/resamplesubs.h | 8 |
3 files changed, 16 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia/g711.c b/pjmedia/src/pjmedia/g711.c index a2832459..11e5d416 100644 --- a/pjmedia/src/pjmedia/g711.c +++ b/pjmedia/src/pjmedia/g711.c @@ -20,6 +20,7 @@ /* This file contains file from Sun Microsystems, Inc, with the complete * notice in the second half of this file. */ +#include <pjmedia/g711.h> #include <pjmedia/codec.h> #include <pjmedia/alaw_ulaw.h> #include <pjmedia/endpoint.h> diff --git a/pjmedia/src/pjmedia/transport_srtp.c b/pjmedia/src/pjmedia/transport_srtp.c index 1a270245..d2bc2780 100644 --- a/pjmedia/src/pjmedia/transport_srtp.c +++ b/pjmedia/src/pjmedia/transport_srtp.c @@ -215,6 +215,13 @@ static pjmedia_transport_op transport_srtp_op = &transport_destroy }; +/* This function may also be used by other module, e.g: pjmedia/errno.c, + * it should have C compatible declaration. + */ +PJ_BEGIN_DECL + const char* get_libsrtp_errstr(int err); +PJ_END_DECL + const char* get_libsrtp_errstr(int err) { #if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 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 |