1*28e138c6SAndroid Build Coastguard Worker /* 2*28e138c6SAndroid Build Coastguard Worker Copyright (C) 2003 Commonwealth Scientific and Industrial Research 3*28e138c6SAndroid Build Coastguard Worker Organisation (CSIRO) Australia 4*28e138c6SAndroid Build Coastguard Worker 5*28e138c6SAndroid Build Coastguard Worker Redistribution and use in source and binary forms, with or without 6*28e138c6SAndroid Build Coastguard Worker modification, are permitted provided that the following conditions 7*28e138c6SAndroid Build Coastguard Worker are met: 8*28e138c6SAndroid Build Coastguard Worker 9*28e138c6SAndroid Build Coastguard Worker - Redistributions of source code must retain the above copyright 10*28e138c6SAndroid Build Coastguard Worker notice, this list of conditions and the following disclaimer. 11*28e138c6SAndroid Build Coastguard Worker 12*28e138c6SAndroid Build Coastguard Worker - Redistributions in binary form must reproduce the above copyright 13*28e138c6SAndroid Build Coastguard Worker notice, this list of conditions and the following disclaimer in the 14*28e138c6SAndroid Build Coastguard Worker documentation and/or other materials provided with the distribution. 15*28e138c6SAndroid Build Coastguard Worker 16*28e138c6SAndroid Build Coastguard Worker - Neither the name of CSIRO Australia nor the names of its 17*28e138c6SAndroid Build Coastguard Worker contributors may be used to endorse or promote products derived from 18*28e138c6SAndroid Build Coastguard Worker this software without specific prior written permission. 19*28e138c6SAndroid Build Coastguard Worker 20*28e138c6SAndroid Build Coastguard Worker THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21*28e138c6SAndroid Build Coastguard Worker ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*28e138c6SAndroid Build Coastguard Worker LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 23*28e138c6SAndroid Build Coastguard Worker PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ORGANISATION OR 24*28e138c6SAndroid Build Coastguard Worker CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25*28e138c6SAndroid Build Coastguard Worker EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26*28e138c6SAndroid Build Coastguard Worker PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27*28e138c6SAndroid Build Coastguard Worker PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 28*28e138c6SAndroid Build Coastguard Worker LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29*28e138c6SAndroid Build Coastguard Worker NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30*28e138c6SAndroid Build Coastguard Worker SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31*28e138c6SAndroid Build Coastguard Worker */ 32*28e138c6SAndroid Build Coastguard Worker 33*28e138c6SAndroid Build Coastguard Worker #ifndef CONFIG_H 34*28e138c6SAndroid Build Coastguard Worker #define CONFIG_H 35*28e138c6SAndroid Build Coastguard Worker 36*28e138c6SAndroid Build Coastguard Worker /* An inline macro is required for use of the inline keyword as not all C compilers support */ 37*28e138c6SAndroid Build Coastguard Worker /* inline. It is officially C99 and C++ only */ 38*28e138c6SAndroid Build Coastguard Worker 39*28e138c6SAndroid Build Coastguard Worker #ifdef __WINS__ 40*28e138c6SAndroid Build Coastguard Worker 41*28e138c6SAndroid Build Coastguard Worker #define inline __inline 42*28e138c6SAndroid Build Coastguard Worker 43*28e138c6SAndroid Build Coastguard Worker /* Disable some pointless/stupid warnings */ 44*28e138c6SAndroid Build Coastguard Worker 45*28e138c6SAndroid Build Coastguard Worker #pragma warning(disable: 4100) /* unreferenced formal parameter */ 46*28e138c6SAndroid Build Coastguard Worker #pragma warning(disable: 4127) /* conditional expression is constant */ 47*28e138c6SAndroid Build Coastguard Worker #pragma warning(disable: 4305) /* truncation from '...' to '...' */ 48*28e138c6SAndroid Build Coastguard Worker #pragma warning(disable: 4244) /* conversion from '...' to '...', possible loss of data */ 49*28e138c6SAndroid Build Coastguard Worker #pragma warning(disable: 4701) /* local variable may be be used without having been initialized */ 50*28e138c6SAndroid Build Coastguard Worker 51*28e138c6SAndroid Build Coastguard Worker #endif /* ! __WINS__ */ 52*28e138c6SAndroid Build Coastguard Worker 53*28e138c6SAndroid Build Coastguard Worker /* Use only fixed point arithmetic */ 54*28e138c6SAndroid Build Coastguard Worker 55*28e138c6SAndroid Build Coastguard Worker #define FIXED_POINT 1 56*28e138c6SAndroid Build Coastguard Worker 57*28e138c6SAndroid Build Coastguard Worker #endif /* ! CONFIG_H */ 58