zeromq / zmqpp

0mq 'highlevel' C++ bindings
http://zeromq.github.io/zmqpp
Mozilla Public License 2.0
438 stars 195 forks source link

Cross platform endian conversions #174

Closed danielunderwood closed 7 years ago

danielunderwood commented 7 years ago

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.