Add endian detection for OS X, Windows and *BSD
Extends the work started in commit c56aabf, which worked for Linux
1 file changed