From 3ade1510e72926d02d7c7d4416257449bc0cd3f3 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 7 Apr 2007 12:29:46 +0000 Subject: Split speex, portaudio, and gsm into third_party directory git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1168 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/build/speex/config.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 third_party/build/speex/config.h (limited to 'third_party/build/speex/config.h') diff --git a/third_party/build/speex/config.h b/third_party/build/speex/config.h new file mode 100644 index 00000000..7874c3f7 --- /dev/null +++ b/third_party/build/speex/config.h @@ -0,0 +1,36 @@ +#include + +/* Check if we need to use the fixed point version */ +#if !defined(PJ_HAS_FLOATING_POINT) || PJ_HAS_FLOATING_POINT==0 +# define FIXED_POINT +#endif + + +#if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ + (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE != 0) +# include "../../speex/win32/config.h" +#endif + +#ifdef _MSC_VER +# pragma warning(disable: 4100) // unreferenced formal parameter +# pragma warning(disable: 4101) // unreferenced local variable +# pragma warning(disable: 4244) // conversion from 'double ' to 'float ' +# pragma warning(disable: 4305) // truncation from 'const double ' to 'float ' +# pragma warning(disable: 4018) // signed/unsigned mismatch +//# pragma warning(disable: 4701) // local variable used without initialized +#endif + +#include + +/* + * Override miscellaneous Speex functions. + */ +#define OVERRIDE_SPEEX_ERROR +#define speex_error(str) PJ_LOG(4,("speex", "error: %s", str)) + +#define OVERRIDE_SPEEX_WARNING +#define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str)) + +#define OVERRIDE_SPEEX_WARNING_INT +#define speex_warning_int(str,val) PJ_LOG(5,("speex", "warning: %s: %d", str, val)) + -- cgit v1.2.3