1 #include <pj/types.h>
2 
3 /* Check if we need to use the fixed point version */
4 #if !defined(PJ_HAS_FLOATING_POINT) || PJ_HAS_FLOATING_POINT==0
5 #   define FIXED_POINT
6 #   define USE_KISS_FFT
7 #else
8 #   define FLOATING_POINT
9 #   define USE_SMALLFT
10 #endif
11 
12 #define EXPORT
13 
14 #if (defined(PJ_WIN32) && PJ_WIN32!=0) || \
15     (defined(PJ_WIN64) && PJ_WIN64!=0) || \
16     (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE != 0)
17 #   include "../../speex/win32/config.h"
18 #else
19 #define inline __inline
20 #define restrict
21 #endif
22 
23 #ifdef _MSC_VER
24 #   pragma warning(disable: 4100)   // unreferenced formal parameter
25 #   pragma warning(disable: 4101)   // unreferenced local variable
26 #   pragma warning(disable: 4244)   // conversion from 'double ' to 'float '
27 #   pragma warning(disable: 4305)   // truncation from 'const double ' to 'float '
28 #   pragma warning(disable: 4018)   // signed/unsigned mismatch
29 #   pragma warning(disable: 4456)   // declaration of '[var]' hides previous local declaration
30 #   pragma warning(disable: 4267)   // conversion from 'size_t' to 'int', possible loss of data
31 #   pragma warning(disable: 4706)   // assignment within conditional expression
32 //#   pragma warning(disable: 4701)   // local variable used without initialized
33 #endif
34 
35 #if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 402
36 #  pragma GCC diagnostic ignored "-Wpragmas"
37 #  pragma GCC diagnostic ignored "-Wunknown-warning-option"
38 #  pragma GCC diagnostic ignored "-Wunused-but-set-variable"
39 #endif
40 
41 #include <pj/log.h>
42 
43 /*
44  * Override miscellaneous Speex functions.
45  */
46 #define OVERRIDE_SPEEX_ERROR
47 #define speex_error(str) PJ_LOG(4,("speex", "error: %s", str))
48 
49 #define OVERRIDE_SPEEX_WARNING
50 #define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str))
51 
52 #define OVERRIDE_SPEEX_WARNING_INT
53 #define speex_warning_int(str,val)  PJ_LOG(5,("speex", "warning: %s: %d", str, val))
54 
55