2 SuperCollider real time audio synthesis system
3 Copyright (c) 2002 James McCartney. All rights reserved.
4 http://www.audiosynth.com
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 /* NOTE: This file should declare/define the following functions/macros:
28 either explicitly or implicitly by including system headers.
31 #ifndef SC_ENDIAN_H_INCLUDED
32 #define SC_ENDIAN_H_INCLUDED
34 #if defined(__APPLE__)
36 # include <machine/endian.h>
38 #elif defined(__FreeBSD__)
40 # include <machine/endian.h>
41 # include <netinet/in.h>
45 # define LITTLE_ENDIAN 1234
46 # define BIG_ENDIAN 4321
47 # define BYTE_ORDER LITTLE_ENDIAN
48 # include <winsock2.h>
52 #elif defined(__linux__)
55 # include <netinet/in.h>
59 # error cannot find endianess on this platform
64 # error BYTE_ORDER undefined, check __FILE__
68 # error BIG_ENDIAN undefined, check __FILE__
72 # error LITTLE_ENDIAN undefined, check __FILE__
73 #endif // LITTLE_ENDIAN
75 #endif // SC_ENDIAN_H_INCLUDED