msvc/config.h

00001 /*
00002  * SpanDSP - a series of DSP components for telephony
00003  *
00004  * config.h - a fudge for MSVC, which lacks this header
00005  *
00006  * Written by Steve Underwood <steveu@coppice.org>
00007  *
00008  * Copyright (C) 2006 Michael Jerris
00009  *
00010  *
00011  * This file is released in the public domain.
00012  */
00013 
00014 #if !defined(_MSVC_CONFIG_H_)
00015 #define _MSVC_CONFIG_H_
00016 
00017 #define HAVE_SINF
00018 #define HAVE_COSF
00019 #define HAVE_TANF
00020 #define HAVE_ASINF
00021 #define HAVE_ACOSF
00022 #define HAVE_ATANF
00023 #define HAVE_ATAN2F
00024 #define HAVE_CEILF
00025 #define HAVE_FLOORF
00026 #define HAVE_POWF
00027 #define HAVE_EXPF
00028 #define HAVE_LOGF
00029 #define HAVE_LOG10F
00030 #define HAVE_MATH_H
00031 #define HAVE_TGMATH_H
00032 
00033 #define HAVE_LONG_DOUBLE
00034 #define HAVE_LIBTIFF
00035 
00036 #define SPANDSP_USE_EXPORT_CAPABILITY 1
00037 
00038 #define PACKAGE "spandsp"
00039 #define VERSION "0.0.6"
00040 
00041 /* Win32/DevStudio compatibility stuff */
00042 
00043 #ifdef _MSC_VER
00044 
00045   #if (_MSC_VER >= 1400) // VC8+
00046     #ifndef _CRT_SECURE_NO_DEPRECATE
00047       #define _CRT_SECURE_NO_DEPRECATE
00048     #endif
00049     #ifndef _CRT_NONSTDC_NO_DEPRECATE
00050       #define _CRT_NONSTDC_NO_DEPRECATE
00051     #endif
00052     #ifndef _CRT_SECURE_NO_WARNINGS
00053       #define _CRT_SECURE_NO_WARNINGS
00054     #endif
00055   #endif // VC8+
00056 
00057   // disable the following warnings 
00058   #pragma warning(disable:4100) // The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored. 
00059   #pragma warning(disable:4200) // Non standard extension C zero sized array
00060   #pragma warning(disable:4706) // assignment within conditional expression
00061   #pragma warning(disable:4244) // conversion from 'type1' to 'type2', possible loss of data
00062   #pragma warning(disable:4295) // array is too small to include a terminating null character
00063   #pragma warning(disable:4125) // decimal digit terminates octal escape sequence
00064   #pragma warning(disable:4305) // 'function' : truncation from 'double' to 'float'
00065   #pragma warning(disable:4018) // '<' : signed/unsigned mismatch
00066   #pragma warning(disable:4389) // '==' : signed/unsigned mismatch
00067   #pragma warning(disable:4245) // 'return' : conversion from 'int' to 'size_t', signed/unsigned mismatch
00068 
00069   #define strncasecmp _strnicmp
00070   #define strcasecmp _stricmp
00071   #define snprintf _snprintf
00072   #define inline __inline
00073   #define __inline__ __inline
00074 
00075   #define _MMX_H_
00076 
00077   #include <malloc.h> // To get alloca
00078 
00079 #endif
00080 
00081 #endif

Generated on Wed Feb 8 18:38:18 2012 for spandsp by  doxygen 1.4.7