Skip to content

Commit

Permalink
Add FFI::Platform::BYTE_ORDER
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVartanov committed Dec 13, 2012
1 parent 9a091dd commit e961729
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/platform/ffi.rb
Expand Up @@ -257,4 +257,8 @@ def self.mac?
def self.unix?
! windows?
end

LITTLE_ENDIAN = :little
BIG_ENDIAN = :big
BYTE_ORDER = Rubinius::ENDIAN == :little ? LITTLE_ENDIAN : BIG_ENDIAN
end

0 comments on commit e961729

Please sign in to comment.