Skip to content

Commit

Permalink
Handle endianess on FreeBSD properly
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 19, 2016
1 parent 7250222 commit bffe626
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/osmium/util/endian.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ DEALINGS IN THE SOFTWARE.

// Windows is only available for little endian architectures
// http://stackoverflow.com/questions/6449468/can-i-safely-assume-that-windows-installations-will-always-be-little-endian
#if !defined(_WIN32) && !defined(__APPLE__)
#if defined(__FreeBSD__)
# include <sys/endian.h>
#elif !defined(_WIN32) && !defined(__APPLE__)
# include <endian.h>
#else
# define __LITTLE_ENDIAN 1234
Expand Down

0 comments on commit bffe626

Please sign in to comment.