3 This file is part of DIG Library.
4 DIG Library is a free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published
6 by the Free Software Foundation; either version 2 of the License,
7 or (at your option) any later version.
8 DIG Library is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
12 You should have received a copy of the GNU General Public License
13 along with Foobar; if not, write to the Free Software Foundation,
14 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // DIGEndian.h,v 1.1 2005/07/26 19:25:52 jdubowy Exp
23 extern const short DIG_ENDIAN_CONST;
25 // This is a macro determine endian
26 // DIG_ENDIAN = 0 for little endian
27 // DIG_ENDIAN = 0 for big endian
29 #define DIG_ENDIAN (*(reinterpret_cast<const char*> (&DIG_ENDIAN_CONST)))
31 #endif // DIG_ENDIAN_H