annotate addons/ofxOsc/libs/oscpack/include/osc/OscHostEndianness.h @ 52:13194a9dca77 tip

Added exporting of image and text data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 17 Jul 2012 22:13:10 +0100
parents b299a65a3ad0
children
rev   line source
andrew@0 1 /*
andrew@0 2 oscpack -- Open Sound Control packet manipulation library
andrew@0 3 http://www.audiomulch.com/~rossb/oscpack
andrew@0 4
andrew@0 5 Copyright (c) 2004-2005 Ross Bencina <rossb@audiomulch.com>
andrew@0 6
andrew@0 7 Permission is hereby granted, free of charge, to any person obtaining
andrew@0 8 a copy of this software and associated documentation files
andrew@0 9 (the "Software"), to deal in the Software without restriction,
andrew@0 10 including without limitation the rights to use, copy, modify, merge,
andrew@0 11 publish, distribute, sublicense, and/or sell copies of the Software,
andrew@0 12 and to permit persons to whom the Software is furnished to do so,
andrew@0 13 subject to the following conditions:
andrew@0 14
andrew@0 15 The above copyright notice and this permission notice shall be
andrew@0 16 included in all copies or substantial portions of the Software.
andrew@0 17
andrew@0 18 Any person wishing to distribute modifications to the Software is
andrew@0 19 requested to send the modifications to the original developer so that
andrew@0 20 they can be incorporated into the canonical version.
andrew@0 21
andrew@0 22 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
andrew@0 23 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
andrew@0 24 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
andrew@0 25 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
andrew@0 26 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
andrew@0 27 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
andrew@0 28 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
andrew@0 29 */
andrew@0 30 #ifndef OSC_HOSTENDIANNESS_H
andrew@0 31 #define OSC_HOSTENDIANNESS_H
andrew@0 32
andrew@0 33 /*
andrew@0 34 Make sure either OSC_HOST_LITTLE_ENDIAN or OSC_HOST_BIG_ENDIAN is defined
andrew@0 35
andrew@0 36 If you know a way to enhance the detection below for Linux and/or MacOSX
andrew@0 37 please let me know! I've tried a few things which don't work.
andrew@0 38 */
andrew@0 39
andrew@0 40 #if defined(OSC_HOST_LITTLE_ENDIAN) || defined(OSC_HOST_BIG_ENDIAN)
andrew@0 41
andrew@0 42 // you can define one of the above symbols from the command line
andrew@0 43 // then you don't have to edit this file.
andrew@0 44
andrew@0 45 #elif defined(__WIN32__) || defined(WIN32)
andrew@0 46
andrew@0 47 // assume that __WIN32__ is only defined on little endian systems
andrew@0 48
andrew@0 49 #define OSC_HOST_LITTLE_ENDIAN 1
andrew@0 50 #undef OSC_HOST_BIG_ENDIAN
andrew@0 51
andrew@0 52 #elif defined(__APPLE__)
andrew@0 53
andrew@0 54 #if defined(__LITTLE_ENDIAN__)
andrew@0 55 #define OSC_HOST_LITTLE_ENDIAN 1
andrew@0 56 #undef OSC_HOST_BIG_ENDIAN
andrew@0 57 #else
andrew@0 58 #define OSC_HOST_BIG_ENDIAN 1
andrew@0 59 #undef OSC_HOST_LITTLE_ENDIAN
andrew@0 60 #endif
andrew@0 61
andrew@0 62 #else
andrew@0 63
andrew@0 64 #error please edit OSCHostEndianness.h to configure endianness
andrew@0 65
andrew@0 66 #endif
andrew@0 67
andrew@0 68 #endif /* OSC_HOSTENDIANNESS_H */
andrew@0 69