Sha256: 1f5eb6eb8862579d8ac70e9793838e729626e372835d949f506d53a9eb745323

Contents?: true

Size: 1.35 KB

Versions: 86

Compression:

Stored size: 1.35 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 <endian.h>
# if !defined(LITTLE_ENDIAN) && defined(__LITTLE_ENDIAN)
#  define LITTLE_ENDIAN __LITTLE_ENDIAN
# endif
# if !defined(BIG_ENDIAN) && defined(__BIG_ENDIAN)
#  define BIG_ENDIAN __BIG_ENDIAN
# endif
# if !defined(BYTE_ORDER) && defined(__BYTE_ORDER)
#  define BYTE_ORDER __BYTE_ORDER
# endif
#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

86 entries across 86 versions & 16 rubygems

Version Path
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
tdiary-5.0.1 vendor/bundle/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
dwolla_swagger-1.0.6 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
vagrant-cloudstack-1.2.0 vendor/bundle/gems/ffi-1.9.10-x86-mingw32/ext/ffi_c/rbffi_endian.h
geminfo-0.1.0 path/gems/ffi-1.9.10-x86-mingw32/ext/ffi_c/rbffi_endian.h
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/ffi-1.9.10/ext/ffi_c/rbffi_endian.h
ffi-1.9.10-x64-mingw32 ext/ffi_c/rbffi_endian.h
ffi-1.9.10-x86-mingw32 ext/ffi_c/rbffi_endian.h
ffi-1.9.10 ext/ffi_c/rbffi_endian.h
ffi-1.9.9-x86-mingw32 ext/ffi_c/rbffi_endian.h
ffi-1.9.9-x64-mingw32 ext/ffi_c/rbffi_endian.h