ruby-x11/lib/X11/protocol.rb
Richard Ramsden 910924a36d Merge remote-tracking branch 'matt/master'
Conflicts:
	lib/X11.rb
	lib/X11/auth.rb
	lib/X11/protocol.rb
2012-03-11 22:20:53 -07:00

16 lines
294 B
Ruby

module X11
module Protocol
# endiness of your machine
BYTE_ORDER = case [1].pack("L")
when "\0\0\0\1"
"B".ord
when "\1\0\0\0"
"l".ord
else
raise ByteOrderError.new "Cannot determine byte order"
end
MAJOR = 11
MINOR = 0
end
end