|
|
|
@ -40,22 +40,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|
|
|
|
// use little-endian as the "native" language of our network messages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* |
|
|
|
|
* Types and constants |
|
|
|
|
* |
|
|
|
|
***/ |
|
|
|
|
|
|
|
|
|
#ifdef _M_IX86 |
|
|
|
|
# define LITTLE_ENDIAN 1 |
|
|
|
|
#else |
|
|
|
|
# define BIG_ENDIAN 1 |
|
|
|
|
// That was a pretty weak check for endian-ness, if it
|
|
|
|
|
// failed then we probably need to strengthen it a bit.
|
|
|
|
|
# error "Are you sure this is a big-endian CPU?" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* |
|
|
|
|
* Little endian functions |
|
|
|
|