Please sign in to comment.
Add platform constants for Linux and BSD
This commit creates constants and specs for the remaining FFI::Platform::IS_LINUX constant. Additional constants have been added for compatibility with MRI's FFI gem: IS_GNU, NAME, IS_FREEBSD, IS_OPENBSD, IS_BSD. BSD constants are pointless since RBX does not currently check for BSD platforms other than OSX. IS_BSD is the only constant which can be true at the moment since IS_MAC can be true as well. IS_GNU should be reviewed and potentially spec'ed as it currently checks definition of FFI::Library::LIBC for its boolean value which may not be the correct approach. MRI implementation checked for the definition of "GNU_LIBC" constant which appears analogous to our FFI::Library::LIBC.
- Loading branch information...
Showing with 32 additions and 2 deletions.