3 Copyright (c) 2006-2009 Charlie C & Erwin Coumans http://gamekit.googlecode.com
5 This software is provided 'as-is', without any express or implied warranty.
6 In no event will the authors be held liable for any damages arising from the use of this software.
7 Permission is granted to anyone to use this software for any purpose,
8 including commercial applications, and to alter it and redistribute it freely,
9 subject to the following restrictions:
11 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
12 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13 3. This notice may not be removed or altered from any source distribution.
19 #if defined (_WIN32) && ! defined (__MINGW32__)
20 #define long64 __int64
21 #elif defined (__MINGW32__)
23 #define long64 int64_t
25 #define long64 long long
32 // ----------------------------------------------------- //
47 // ----------------------------------------------------- //
61 // ----------------------------------------------------- //
72 // ----------------------------------------------------- //
78 static int getOffset(int flags);
81 static short swapShort(short sht);
82 static int swapInt(int inte);
83 static long64 swapLong64(long64 lng);
88 const int CHUNK_HEADER_LEN = ((sizeof(bChunkInd)));
89 const bool VOID_IS_8 = ((sizeof(void*)==8));