Sha256: 5294673c351d3f5037a26645052d154c41933feff98817eb7691316ab15c2e9c

Contents?: true

Size: 713 Bytes

Versions: 5

Compression:

Stored size: 713 Bytes

Contents

#ifndef _IV_BYTEORDER_H_
#define _IV_BYTEORDER_H_

#include <sys/types.h>

#if defined(__FreeBSD__) || defined(__APPLE__)

#if defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <machine/endian.h>
#endif  // defined(__FreeBSD__)

#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN

#elif defined(__GNUC__)

#include <endian.h>

#endif

#if !defined(__BYTE_ORDER) || (__BYTE_ORDER != __LITTLE_ENDIAN && __BYTE_ORDER != __BIG_ENDIAN)
#error BYTE_ORDER not defined. you shoud define __LITTLE_ENDIAN or __BIG_ENDIAN
#endif

#if (__BYTE_ORDER == __LITTLE_ENDIAN)
#define IV_IS_LITTLE_ENDIAN
#else
#define IV_IS_BIG_ENDIAN
#endif

#endif  // _IV_BYTEORDER_H_

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iv-phonic-0.1.8 ext/include/iv/byteorder.h
iv-phonic-0.1.7 ext/include/iv/byteorder.h
iv-phonic-0.1.6 ext/include/iv/byteorder.h
iv-phonic-0.1.5 ext/include/iv/byteorder.h
iv-phonic-0.1.3 ext/include/iv/byteorder.h