1c2c66affSColin Finck /* 2c2c66affSColin Finck ** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com> 3c2c66affSColin Finck ** All rights reserved. 4c2c66affSColin Finck ** 5c2c66affSColin Finck ** This code is released under 2-clause BSD license. Please see the 6c2c66affSColin Finck ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING 7c2c66affSColin Finck */ 8c2c66affSColin Finck 9c2c66affSColin Finck /* 10c2c66affSColin Finck ** This is the Win32 specific config.h header file. 11c2c66affSColin Finck ** 12c2c66affSColin Finck ** On Unix (including MacOSX), this header file is automatically generated 13c2c66affSColin Finck ** during the configure process while on Win32 this has to be hand edited 14c2c66affSColin Finck ** to keep it up to date. 15c2c66affSColin Finck ** 16c2c66affSColin Finck ** This is also a good file to add Win32 specific things. 17c2c66affSColin Finck */ 18c2c66affSColin Finck 19c2c66affSColin Finck /* 20c2c66affSColin Finck ** MSVC++ assumes that all floating point constants without a trailing 21c2c66affSColin Finck ** letter 'f' are double precision. 22c2c66affSColin Finck ** 23c2c66affSColin Finck ** If this assumption is incorrect and one of these floating point constants 24c2c66affSColin Finck ** is assigned to a float variable MSVC++ generates a warning. 25c2c66affSColin Finck ** 26c2c66affSColin Finck ** Since there are currently about 25000 of these warnings generated in 27c2c66affSColin Finck ** src/src_sinc.c this slows down compile times considerably. The 28c2c66affSColin Finck ** following #pragma disables the warning. 29c2c66affSColin Finck */ 30c2c66affSColin Finck #ifdef _MSC_VER 31c2c66affSColin Finck #pragma warning(disable: 4305) 32c2c66affSColin Finck #endif 33c2c66affSColin Finck /*---------------------------------------------------------------------------- 34c2c66affSColin Finck ** Normal #defines follow. 35c2c66affSColin Finck */ 36c2c66affSColin Finck 37c2c66affSColin Finck /* Set to 1 if the compile is GNU GCC. */ 38c2c66affSColin Finck #define COMPILER_IS_GCC 0 39c2c66affSColin Finck 40c2c66affSColin Finck /* Target processor clips on negative float to int conversion. */ 41c2c66affSColin Finck #define CPU_CLIPS_NEGATIVE 0 42c2c66affSColin Finck 43c2c66affSColin Finck /* Target processor clips on positive float to int conversion. */ 44c2c66affSColin Finck #define CPU_CLIPS_POSITIVE 0 45c2c66affSColin Finck 46c2c66affSColin Finck /* Target processor is big endian. */ 47c2c66affSColin Finck #define CPU_IS_BIG_ENDIAN 0 48c2c66affSColin Finck 49c2c66affSColin Finck /* Target processor is little endian. */ 50c2c66affSColin Finck #define CPU_IS_LITTLE_ENDIAN 1 51c2c66affSColin Finck 52c2c66affSColin Finck /* Set to 1 to enable debugging. */ 53c2c66affSColin Finck #define ENABLE_DEBUG 0 54c2c66affSColin Finck 55c2c66affSColin Finck /* Major version of GCC or 3 otherwise. */ 56c2c66affSColin Finck /* #undef GCC_MAJOR_VERSION */ 57c2c66affSColin Finck 58c2c66affSColin Finck /* Define to 1 if you have the `alarm' function. */ 59c2c66affSColin Finck /* #undef HAVE_ALARM */ 60c2c66affSColin Finck 61c2c66affSColin Finck /* Define to 1 if you have the `calloc' function. */ 62c2c66affSColin Finck #define HAVE_CALLOC 1 63c2c66affSColin Finck 64c2c66affSColin Finck /* Define to 1 if you have the `ceil' function. */ 65c2c66affSColin Finck #define HAVE_CEIL 1 66c2c66affSColin Finck 67c2c66affSColin Finck /* Define to 1 if you have the <dlfcn.h> header file. */ 68c2c66affSColin Finck /* #undef HAVE_DLFCN_H */ 69c2c66affSColin Finck 70c2c66affSColin Finck /* Set to 1 if you have libfftw3. */ 71c2c66affSColin Finck /* #undef HAVE_FFTW3 */ 72c2c66affSColin Finck 73c2c66affSColin Finck /* Define to 1 if you have the `floor' function. */ 74c2c66affSColin Finck #define HAVE_FLOOR 1 75c2c66affSColin Finck 76c2c66affSColin Finck /* Define to 1 if you have the `fmod' function. */ 77c2c66affSColin Finck #define HAVE_FMOD 1 78c2c66affSColin Finck 79c2c66affSColin Finck /* Define to 1 if you have the `free' function. */ 80c2c66affSColin Finck #define HAVE_FREE 1 81c2c66affSColin Finck 82c2c66affSColin Finck /* Define to 1 if you have the <inttypes.h> header file. */ 83c2c66affSColin Finck /* #undef HAVE_INTTYPES_H */ 84c2c66affSColin Finck 85c2c66affSColin Finck /* Define to 1 if you have the `m' library (-lm). */ 86c2c66affSColin Finck /* #undef HAVE_LIBM */ 87c2c66affSColin Finck 88c2c66affSColin Finck /* Define if you have C99's lrint function. */ 89c2c66affSColin Finck #define HAVE_LRINT 1 90c2c66affSColin Finck 91c2c66affSColin Finck /* Define if you have C99's lrintf function. */ 92c2c66affSColin Finck #define HAVE_LRINTF 1 93c2c66affSColin Finck 94c2c66affSColin Finck /* Define to 1 if you have the `malloc' function. */ 95c2c66affSColin Finck #define HAVE_MALLOC 1 96c2c66affSColin Finck 97c2c66affSColin Finck /* Define to 1 if you have the `memcpy' function. */ 98c2c66affSColin Finck #define HAVE_MEMCPY 1 99c2c66affSColin Finck 100c2c66affSColin Finck /* Define to 1 if you have the `memmove' function. */ 101c2c66affSColin Finck #define HAVE_MEMMOVE 1 102c2c66affSColin Finck 103c2c66affSColin Finck /* Define to 1 if you have the <memory.h> header file. */ 104c2c66affSColin Finck #define HAVE_MEMORY_H 1 105c2c66affSColin Finck 106c2c66affSColin Finck /* Define if you have signal SIGALRM. */ 107c2c66affSColin Finck /* #undef HAVE_SIGALRM */ 108c2c66affSColin Finck 109c2c66affSColin Finck /* Define to 1 if you have the `signal' function. */ 110c2c66affSColin Finck /* #undef HAVE_SIGNAL */ 111c2c66affSColin Finck 112c2c66affSColin Finck /* Set to 1 if you have libsndfile. */ 113c2c66affSColin Finck #define HAVE_SNDFILE 1 114c2c66affSColin Finck 115c2c66affSColin Finck /* Define to 1 if you have the <stdint.h> header file. */ 116c2c66affSColin Finck /* #undef HAVE_STDINT_H */ 117c2c66affSColin Finck 118c2c66affSColin Finck /* Define to 1 if you have the <stdlib.h> header file. */ 119c2c66affSColin Finck #define HAVE_STDLIB_H 1 120c2c66affSColin Finck 121c2c66affSColin Finck /* Define to 1 if you have the <strings.h> header file. */ 122c2c66affSColin Finck #define HAVE_STRINGS_H 1 123c2c66affSColin Finck 124c2c66affSColin Finck /* Define to 1 if you have the <string.h> header file. */ 125c2c66affSColin Finck #define HAVE_STRING_H 1 126c2c66affSColin Finck 127c2c66affSColin Finck /* Define to 1 if you have the <sys/stat.h> header file. */ 128c2c66affSColin Finck #define HAVE_SYS_STAT_H 1 129c2c66affSColin Finck 130c2c66affSColin Finck /* Define to 1 if you have the <sys/times.h> header file. */ 131c2c66affSColin Finck /* #undef HAVE_SYS_TIMES_H */ 132c2c66affSColin Finck 133c2c66affSColin Finck /* Define to 1 if you have the <sys/types.h> header file. */ 134c2c66affSColin Finck #define HAVE_SYS_TYPES_H 1 135c2c66affSColin Finck 136c2c66affSColin Finck /* Define to 1 if you have the <unistd.h> header file. */ 137c2c66affSColin Finck #define HAVE_UNISTD_H 1 138c2c66affSColin Finck 139c2c66affSColin Finck /* Define to the sub-directory in which libtool stores uninstalled libraries. 140c2c66affSColin Finck */ 141c2c66affSColin Finck #define LT_OBJDIR ".libs/" 142c2c66affSColin Finck 143c2c66affSColin Finck /* Define to 1 if your C compiler doesn't accept -c and -o together. */ 144c2c66affSColin Finck /* #undef NO_MINUS_C_MINUS_O */ 145c2c66affSColin Finck 146c2c66affSColin Finck /* Set to 1 if compiling for Win32 */ 147c2c66affSColin Finck #define OS_IS_WIN32 1 148c2c66affSColin Finck 149c2c66affSColin Finck /* Name of package */ 150c2c66affSColin Finck #define PACKAGE "libsamplerate" 151c2c66affSColin Finck 152c2c66affSColin Finck /* Define to the address where bug reports for this package should be sent. */ 153c2c66affSColin Finck #define PACKAGE_BUGREPORT "erikd@mega-nerd.com" 154c2c66affSColin Finck 155c2c66affSColin Finck /* Define to the full name of this package. */ 156c2c66affSColin Finck #define PACKAGE_NAME "libsamplerate" 157c2c66affSColin Finck 158c2c66affSColin Finck /* Define to the full name and version of this package. */ 159c2c66affSColin Finck #define PACKAGE_STRING "libsamplerate 0.1.8" 160c2c66affSColin Finck 161c2c66affSColin Finck /* Define to the one symbol short name of this package. */ 162c2c66affSColin Finck #define PACKAGE_TARNAME "libsamplerate" 163c2c66affSColin Finck 164c2c66affSColin Finck /* Define to the home page for this package. */ 165c2c66affSColin Finck #define PACKAGE_URL "http://www.mega-nerd.com/libsamplerate/" 166c2c66affSColin Finck 167c2c66affSColin Finck /* Define to the version of this package. */ 168c2c66affSColin Finck #define PACKAGE_VERSION "0.1.8" 169c2c66affSColin Finck 170c2c66affSColin Finck /* The size of `double', as computed by sizeof. */ 171c2c66affSColin Finck #define SIZEOF_DOUBLE 8 172c2c66affSColin Finck 173c2c66affSColin Finck /* The size of `float', as computed by sizeof. */ 174c2c66affSColin Finck #define SIZEOF_FLOAT 4 175c2c66affSColin Finck 176c2c66affSColin Finck /* The size of `int', as computed by sizeof. */ 177c2c66affSColin Finck #define SIZEOF_INT 4 178c2c66affSColin Finck 179c2c66affSColin Finck /* The size of `long', as computed by sizeof. */ 180c2c66affSColin Finck #define SIZEOF_LONG 4 181c2c66affSColin Finck 182c2c66affSColin Finck /* Define to 1 if you have the ANSI C header files. */ 183c2c66affSColin Finck #define STDC_HEADERS 1 184c2c66affSColin Finck 185c2c66affSColin Finck /* Version number of package */ 186c2c66affSColin Finck #define VERSION "0.1.8" 187c2c66affSColin Finck 188c2c66affSColin Finck 189c2c66affSColin Finck 190c2c66affSColin Finck /* Extra Win32 hacks. */ 191c2c66affSColin Finck 192c2c66affSColin Finck /* 193c2c66affSColin Finck ** Microsoft's compiler still does not support the 1999 ISO C Standard 194c2c66affSColin Finck ** which includes 'inline'. 195c2c66affSColin Finck */ 196c2c66affSColin Finck 197c2c66affSColin Finck #define inline __inline 198c2c66affSColin Finck 199c2c66affSColin Finck /* ReactOS hacks */ 200*80774a2fSAmine Khaldi void __cdecl __debugbreak(void); 201c2c66affSColin Finck unsigned long __cdecl DbgPrint(const char *Format, ...); 202*80774a2fSAmine Khaldi #define exit(n) __debugbreak() 203c2c66affSColin Finck #define printf DbgPrint 204c2c66affSColin Finck 205c2c66affSColin Finck # ifdef _MSC_VER 206c2c66affSColin Finck # pragma warning(disable:4244) 207c2c66affSColin Finck # endif /* _MSC_VER */ 208