This change eliminates the call to htobe32 which broke builds on OS X causing #164 and broke builds on Windows and possibly being related to #144.
Endian byte ordering is moved to byte_ordering.hpp and defines a macro based on the platform being used. I only implemented host to big endian for 32 bits since that is the only call that seems to be used in the source code. Other conversions can be implemented if (or when) needed.
This change eliminates the call to
htobe32
which broke builds on OS X causing #164 and broke builds on Windows and possibly being related to #144.Endian byte ordering is moved to
byte_ordering.hpp
and defines a macro based on the platform being used. I only implemented host to big endian for 32 bits since that is the only call that seems to be used in the source code. Other conversions can be implemented if (or when) needed.