2013-02-21 21:41:37 +08:00
|
|
|
#ifndef FOUG_C_ENDIAN_H
|
|
|
|
#define FOUG_C_ENDIAN_H
|
2013-01-15 02:30:42 +08:00
|
|
|
|
2013-01-16 00:56:24 +08:00
|
|
|
#include "global.h"
|
2013-01-15 02:30:42 +08:00
|
|
|
|
2014-02-13 18:18:46 +08:00
|
|
|
/*! This enum identifies endian representations of numbers */
|
2013-01-15 02:30:42 +08:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
FOUG_LITTLE_ENDIAN,
|
|
|
|
FOUG_BIG_ENDIAN,
|
|
|
|
FOUG_MIDDLE_ENDIAN,
|
|
|
|
FOUG_OTHER_ENDIAN
|
|
|
|
} foug_endianness_t;
|
|
|
|
|
2014-02-13 18:18:46 +08:00
|
|
|
/*! Returns endianness (byte order) of the host's CPU architecture */
|
2013-01-15 23:45:01 +08:00
|
|
|
FOUG_LIB_EXPORT foug_endianness_t foug_host_endianness();
|
2013-01-15 02:30:42 +08:00
|
|
|
|
|
|
|
#endif /* FOUG_ENDIAN_H */
|