~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.2.1/third_party/build/speex/config.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: 4701)   // local variable used without initialized
 
30
#endif
 
31
 
 
32
#include <pj/log.h>
 
33
 
 
34
/*
 
35
 * Override miscellaneous Speex functions.
 
36
 */
 
37
#define OVERRIDE_SPEEX_ERROR
 
38
#define speex_error(str) PJ_LOG(4,("speex", "error: %s", str))
 
39
 
 
40
#define OVERRIDE_SPEEX_WARNING
 
41
#define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str))
 
42
 
 
43
#define OVERRIDE_SPEEX_WARNING_INT
 
44
#define speex_warning_int(str,val)  PJ_LOG(5,("speex", "warning: %s: %d", str, val))
 
45