cr-marcstevens / sha1collisiondetection

Library and command line tool to detect SHA-1 collision in a file
Other
1.31k stars 185 forks source link

Fix for operation on sparc processors #35

Closed lidl closed 7 years ago

lidl commented 7 years ago

Old versions of gcc (such as gcc 4.2.1) don't provide any ENDIAN related defines.

Add a check for the sparc architecture, which I think should work on both 32 and 64 bit versions. Tested with gcc 4.2.1 on FreeBSD, on a Sparc64 machine.

lidl commented 7 years ago

I updated the patch in the way you requested.