spandsp 0.0.6

msvc/config.h
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * config.h - a fudge for MSVC, which lacks this header
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2006 Michael Jerris
9 *
10 *
11 * This file is released in the public domain.
12 */
13
14#if !defined(_MSVC_CONFIG_H_)
15#define _MSVC_CONFIG_H_
16
17#define HAVE_SINF
18#define HAVE_COSF
19#define HAVE_TANF
20#define HAVE_ASINF
21#define HAVE_ACOSF
22#define HAVE_ATANF
23#define HAVE_ATAN2F
24#define HAVE_CEILF
25#define HAVE_FLOORF
26#define HAVE_POWF
27#define HAVE_EXPF
28#define HAVE_LOGF
29#define HAVE_LOG10F
30#define HAVE_MATH_H
31#define HAVE_TGMATH_H
32
33#define HAVE_LONG_DOUBLE
34#define HAVE_LIBTIFF
35
36#define SPANDSP_USE_EXPORT_CAPABILITY 1
37
38#define PACKAGE "spandsp"
39#define VERSION "0.0.6"
40
41/* Win32/DevStudio compatibility stuff */
42
43#ifdef _MSC_VER
44
45 #if (_MSC_VER >= 1400) // VC8+
46 #ifndef _CRT_SECURE_NO_DEPRECATE
47 #define _CRT_SECURE_NO_DEPRECATE
48 #endif
49 #ifndef _CRT_NONSTDC_NO_DEPRECATE
50 #define _CRT_NONSTDC_NO_DEPRECATE
51 #endif
52 #ifndef _CRT_SECURE_NO_WARNINGS
53 #define _CRT_SECURE_NO_WARNINGS
54 #endif
55 #endif // VC8+
56
57 // disable the following warnings
58 #pragma warning(disable:4100) // The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.
59 #pragma warning(disable:4200) // Non standard extension C zero sized array
60 #pragma warning(disable:4706) // assignment within conditional expression
61 #pragma warning(disable:4244) // conversion from 'type1' to 'type2', possible loss of data
62 #pragma warning(disable:4295) // array is too small to include a terminating null character
63 #pragma warning(disable:4125) // decimal digit terminates octal escape sequence
64 #pragma warning(disable:4305) // 'function' : truncation from 'double' to 'float'
65 #pragma warning(disable:4018) // '<' : signed/unsigned mismatch
66 #pragma warning(disable:4389) // '==' : signed/unsigned mismatch
67 #pragma warning(disable:4245) // 'return' : conversion from 'int' to 'size_t', signed/unsigned mismatch
68
69 #define strncasecmp _strnicmp
70 #define strcasecmp _stricmp
71 #define snprintf _snprintf
72 #define inline __inline
73 #define __inline__ __inline
74
75 #define _MMX_H_
76
77 #include <malloc.h> // To get alloca
78
79#endif
80
81#endif