# platform.rb

Path: | lib/ffi/platform.rb
Last Update: | Tue Apr 09 03:44:35 +0000 2013

Copyright (C) 2008, 2009 Wayne Meissner All rights reserved.

This file is part of ruby-ffi.

All rights reserved.

This code is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 only, as published by the Free Software Foundation.

This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License version 3 for more details.

You should have received a copy of the GNU Lesser General Public License version 3 along with this work. If not, see <www.gnu.org/licenses/>.

### Required files

rbconfig

### Constants

NAME | = | "#{ARCH}-#{OS}"
IS_GNU | = | defined?(GNU_LIBC)
IS_LINUX | = | is_os("linux")
IS_MAC | = | is_os("darwin")
IS_FREEBSD | = | is_os("freebsd")
IS_OPENBSD | = | is_os("openbsd")
IS_WINDOWS | = | is_os("windows")
IS_BSD | = | IS_MAC || IS_FREEBSD || IS_OPENBSD
CONF_DIR | = | File.join(File.dirname(__FILE__), 'platform', NAME)
LIBPREFIX | = | IS_WINDOWS ? '' : 'lib'
LIBSUFFIX | = | case OS

[Validate]