# Copyright (c) 2014-2016 The Hybrid Group require 'rbconfig' require 'ffi' include RbConfig module RubySerial class Exception < Exception end end if CONFIG['host_os'] =~ /mswin|windows|mingw/i require 'rubyserial/windows_constants' require 'rubyserial/windows' else if CONFIG['host_os'] =~ /linux/i require 'rubyserial/linux_constants' else require 'rubyserial/osx_constants' end require 'rubyserial/posix' end