mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2024-12-30 13:29:18 +00:00
17 lines
240 B
C
17 lines
240 B
C
#ifndef endian_h
|
|
#define endian_h
|
|
|
|
enum class endian {
|
|
#ifdef _WIN32
|
|
little = 1234,
|
|
big = 4321,
|
|
native = little
|
|
#else
|
|
little = __ORDER_LITTLE_ENDIAN__,
|
|
big = __ORDER_BIG_ENDIAN__,
|
|
native = __BYTE_ORDER__
|
|
#endif
|
|
};
|
|
|
|
#endif
|