Sha256: 362af0ece67e47c83d213335ccf19efa8e4892f4e5734b075251ff5dd090686e

Contents?: true

Size: 1.07 KB

Versions: 16

Compression:

Stored size: 1.07 KB

Contents

#ifndef JFFI_ENDIAN_H
#define JFFI_ENDIAN_H

#ifndef _MSC_VER
#include <sys/param.h>
#endif

#include <sys/types.h>

#if defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) || defined(__GLIBC__)
#  include_next <endian.h>
#endif

#ifdef __sun
# include <sys/byteorder.h>
# define LITTLE_ENDIAN 1234
# define BIG_ENDIAN 4321
# if defined(_BIG_ENDIAN)
#  define BYTE_ORDER BIG_ENDIAN
# elif defined(_LITTLE_ENDIAN)
#  define BYTE_ORDER LITTLE_ENDIAN
# else
#  error "Cannot determine endian-ness"
# endif
#endif

#if defined(_AIX) && !defined(BYTE_ORDER)
# define LITTLE_ENDIAN 1234
# define BIG_ENDIAN 4321
# if defined(__BIG_ENDIAN__)
#  define BYTE_ORDER BIG_ENDIAN
# elif defined(__LITTLE_ENDIAN__)
#  define BYTE_ORDER LITTLE_ENDIAN
# else
#  error "Cannot determine endian-ness"
# endif
#endif

#if defined(_WIN32)
# define LITTLE_ENDIAN 1234
# define BIG_ENDIAN 4321
# define BYTE_ORDER LITTLE_ENDIAN
#endif

#if !defined(BYTE_ORDER) || !defined(LITTLE_ENDIAN) || !defined(BIG_ENDIAN)
#  error "Cannot determine the endian-ness of this platform"
#endif

#endif /* JFFI_ENDIAN_H */

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ffi-1.1.0-x86-mingw32 ext/ffi_c/endian.h
ffi-1.1.0 ext/ffi_c/endian.h
ffi-1.1.0.rc4-x86-mingw32 ext/ffi_c/endian.h
ffi-1.1.0.rc4 ext/ffi_c/endian.h
ffi-1.1.0.rc3-x86-mingw32 ext/ffi_c/endian.h
ffi-1.1.0.rc3 ext/ffi_c/endian.h
ffi-1.1.0.rc2-x86-mingw32 ext/ffi_c/endian.h
ffi-1.1.0.rc2 ext/ffi_c/endian.h
ffi-1.1.0.rc1 ext/ffi_c/endian.h
ffi-1.0.12.rc3-x86-mingw32 ext/ffi_c/endian.h
ffi-1.0.12.rc3 ext/ffi_c/endian.h
ffi-1.0.12.rc2 ext/ffi_c/endian.h
ffi-1.0.12.rc2-x86-mingw32 ext/ffi_c/endian.h
ffi-1.0.12.rc1 ext/ffi_c/endian.h
ffi-1.0.12.pre-x86-mingw32 ext/ffi_c/endian.h
ffi-1.0.12.pre ext/ffi_c/endian.h