18#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
19#pragma warning(disable : 4251)
20#pragma warning(disable : 4786)
21#define snprintf _snprintf
24#if !defined(_WIN32) || defined(__MINGW32__) || defined(__CYGWIN__)
25#define stricmp strcasecmp
28#if defined(_MSC_VER) && _MSC_VER <= 1200
36#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
40#define CAL3D_API __declspec(dllexport)
42#define CAL3D_API __declspec(dllimport)
56#if defined(__i386__) || \
57 defined(__ia64__) || \
59 defined(__alpha__) || defined(__alpha) || \
61 (defined(__mips__) && defined(__MIPSEL__)) || \
62 defined(__SYMBIAN32__) || \
63 defined(__x86_64__) || \
64 defined(__LITTLE_ENDIAN__)
66#define CAL3D_LITTLE_ENDIAN
70#define CAL3D_BIG_ENDIAN
111 static bool readBytes(std::istream& input,
void *pBuffer,
int length);
112 static bool readFloat(std::istream& input,
float& value);
113 static bool readShort(std::istream& input,
short& value);
114 static bool readInteger(std::istream& input,
int& value);
115 static bool readString(std::istream& input, std::string& strValue);
117 static bool readBytes(
char* input,
void *pBuffer,
int length);
118 static bool readFloat(
char* input,
float& value);
119 static bool readShort(
char* input,
short& value);
120 static bool readInteger(
char* input,
int& value);
121 static bool readString(
char* input, std::string& strValue);
123 static bool writeBytes(std::ostream& output,
const void *pBuffer,
int length);
124 static bool writeFloat(std::ostream& output,
float value);
125 static bool writeShort(std::ostream& output,
short value);
126 static bool writeInteger(std::ostream& output,
int value);
127 static bool writeString(std::ostream& output,
const std::string& strValue);