Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/msvc/config.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
---|---|
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 * $Id: config.h,v 1.4 2009/02/25 15:30:21 steveu Exp $ | |
14 */ | |
15 | |
16 #if !defined(_MSVC_CONFIG_H_) | |
17 #define _MSVC_CONFIG_H_ | |
18 | |
19 #define HAVE_SINF | |
20 #define HAVE_COSF | |
21 #define HAVE_TANF | |
22 #define HAVE_ASINF | |
23 #define HAVE_ACOSF | |
24 #define HAVE_ATANF | |
25 #define HAVE_ATAN2F | |
26 #define HAVE_CEILF | |
27 #define HAVE_FLOORF | |
28 #define HAVE_POWF | |
29 #define HAVE_EXPF | |
30 #define HAVE_LOGF | |
31 #define HAVE_LOG10F | |
32 #define HAVE_MATH_H | |
33 #define HAVE_TGMATH_H | |
34 | |
35 #define HAVE_LONG_DOUBLE | |
36 #define HAVE_LIBTIFF | |
37 | |
38 #define SPANDSP_USE_EXPORT_CAPABILITY 1 | |
39 | |
40 #define PACKAGE "spandsp" | |
41 #define VERSION "0.0.6" | |
42 | |
43 /* Win32/DevStudio compatibility stuff */ | |
44 | |
45 #ifdef _MSC_VER | |
46 | |
47 #if (_MSC_VER >= 1400) // VC8+ | |
48 #ifndef _CRT_SECURE_NO_DEPRECATE | |
49 #define _CRT_SECURE_NO_DEPRECATE | |
50 #endif | |
51 #ifndef _CRT_NONSTDC_NO_DEPRECATE | |
52 #define _CRT_NONSTDC_NO_DEPRECATE | |
53 #endif | |
54 #ifndef _CRT_SECURE_NO_WARNINGS | |
55 #define _CRT_SECURE_NO_WARNINGS | |
56 #endif | |
57 #endif // VC8+ | |
58 | |
59 // disable the following warnings | |
60 #pragma warning(disable:4100) // The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored. | |
61 #pragma warning(disable:4200) // Non standard extension C zero sized array | |
62 #pragma warning(disable:4706) // assignment within conditional expression | |
63 #pragma warning(disable:4244) // conversion from 'type1' to 'type2', possible loss of data | |
64 #pragma warning(disable:4295) // array is too small to include a terminating null character | |
65 #pragma warning(disable:4125) // decimal digit terminates octal escape sequence | |
66 #pragma warning(disable:4305) // 'function' : truncation from 'double' to 'float' | |
67 #pragma warning(disable:4018) // '<' : signed/unsigned mismatch | |
68 #pragma warning(disable:4389) // '==' : signed/unsigned mismatch | |
69 #pragma warning(disable:4245) // 'return' : conversion from 'int' to 'size_t', signed/unsigned mismatch | |
70 | |
71 #define strncasecmp _strnicmp | |
72 #define strcasecmp _stricmp | |
73 #define snprintf _snprintf | |
74 #define inline __inline | |
75 #define __inline__ __inline | |
76 | |
77 #define _MMX_H_ | |
78 | |
79 #include <malloc.h> // To get alloca | |
80 | |
81 #endif | |
82 | |
83 #endif |