2014-01-25 21:55:08 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2014-01-26 07:51:04 +08:00
|
|
|
#if defined(_MSC_VER) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
|
2014-01-25 21:55:08 +08:00
|
|
|
#define byteReverse(buf, long)((void)(buf, long))
|
|
|
|
#else
|
|
|
|
void
|
|
|
|
byteReverse(unsigned char *buf, unsigned longs);
|
|
|
|
#endif
|