tomwalters@509: /* tomwalters@509: oscpack -- Open Sound Control packet manipulation library tomwalters@509: http://www.audiomulch.com/~rossb/oscpack tomwalters@509: tomwalters@509: Copyright (c) 2004-2005 Ross Bencina tomwalters@509: tomwalters@509: Permission is hereby granted, free of charge, to any person obtaining tomwalters@509: a copy of this software and associated documentation files tomwalters@509: (the "Software"), to deal in the Software without restriction, tomwalters@509: including without limitation the rights to use, copy, modify, merge, tomwalters@509: publish, distribute, sublicense, and/or sell copies of the Software, tomwalters@509: and to permit persons to whom the Software is furnished to do so, tomwalters@509: subject to the following conditions: tomwalters@509: tomwalters@509: The above copyright notice and this permission notice shall be tomwalters@509: included in all copies or substantial portions of the Software. tomwalters@509: tomwalters@509: Any person wishing to distribute modifications to the Software is tomwalters@509: requested to send the modifications to the original developer so that tomwalters@509: they can be incorporated into the canonical version. tomwalters@509: tomwalters@509: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, tomwalters@509: EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF tomwalters@509: MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. tomwalters@509: IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR tomwalters@509: ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF tomwalters@509: CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION tomwalters@509: WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. tomwalters@509: */ tomwalters@509: #ifndef OSC_HOSTENDIANNESS_H tomwalters@509: #define OSC_HOSTENDIANNESS_H tomwalters@509: tomwalters@509: /* tomwalters@509: Make sure either OSC_HOST_LITTLE_ENDIAN or OSC_HOST_BIG_ENDIAN is defined tomwalters@509: tomwalters@509: If you know a way to enhance the detection below for Linux and/or MacOSX tomwalters@509: please let me know! I've tried a few things which don't work. tomwalters@509: */ tomwalters@509: tomwalters@509: #if defined(OSC_HOST_LITTLE_ENDIAN) || defined(OSC_HOST_BIG_ENDIAN) tomwalters@509: tomwalters@509: // you can define one of the above symbols from the command line tomwalters@509: // then you don't have to edit this file. tomwalters@509: tomwalters@509: #elif defined(__WIN32__) || defined(WIN32) tomwalters@509: tomwalters@509: // assume that __WIN32__ is only defined on little endian systems tomwalters@509: tomwalters@509: #define OSC_HOST_LITTLE_ENDIAN 1 tomwalters@509: #undef OSC_HOST_BIG_ENDIAN tomwalters@509: tomwalters@509: #elif defined(__APPLE__) tomwalters@509: tomwalters@509: #if defined(__LITTLE_ENDIAN__) tomwalters@509: #define OSC_HOST_LITTLE_ENDIAN 1 tomwalters@509: #undef OSC_HOST_BIG_ENDIAN tomwalters@509: #else tomwalters@509: #define OSC_HOST_BIG_ENDIAN 1 tomwalters@509: #undef OSC_HOST_LITTLE_ENDIAN tomwalters@509: #endif tomwalters@509: tomwalters@509: #else tomwalters@509: tomwalters@509: #error please edit OSCHostEndianness.h to configure endianness tomwalters@509: tomwalters@509: #endif tomwalters@509: tomwalters@509: #endif /* OSC_HOSTENDIANNESS_H */ tomwalters@509: