gmio/src/endian.h

19 lines
408 B
C
Raw Normal View History

#ifndef FOUG_C_ENDIAN_H
#define FOUG_C_ENDIAN_H
2013-01-16 00:56:24 +08:00
#include "global.h"
/*! This enum identifies endian representations of numbers */
typedef enum
{
FOUG_LITTLE_ENDIAN,
FOUG_BIG_ENDIAN,
FOUG_MIDDLE_ENDIAN,
FOUG_OTHER_ENDIAN
} foug_endianness_t;
/*! Returns endianness (byte order) of the host's CPU architecture */
FOUG_LIB_EXPORT foug_endianness_t foug_host_endianness();
#endif /* FOUG_ENDIAN_H */