-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
OSX has no endian.h #1
Comments
The "default" byte order is little endian (and your system is little endian, too). This preprocesser statement in line 98 "detects" big endian: Big endian systems are rare nowadays. |
Just removing the include might work for Macs but breaks the whole thing on big-endian Unix machines. |
|
To have support for both OSX and Linux/WIndows, you can use #include <sys/types.h> |
It seems OSX has no
endian.h
, but it also looks like it is not needed.Possible solution to make
sha256.cpp
compile on OSX:Replace
hash-library/sha256.cpp
Lines 9 to 12 in a8a88f8
with
The text was updated successfully, but these errors were encountered: