diff options
Diffstat (limited to 'ext/digest')
-rw-r--r-- | ext/digest/sha2/sha2.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/digest/sha2/sha2.h b/ext/digest/sha2/sha2.h index 30df8f07c8..3536b31330 100644 --- a/ext/digest/sha2/sha2.h +++ b/ext/digest/sha2/sha2.h @@ -54,7 +54,16 @@ extern "C" { # undef NOPROTO # else # define NOPROTO -# endif +# endif /* HAVE_PROTOTYPES */ +# ifndef BYTE_ORDER +# define LITTLE_ENDIAN 1234 +# define BIG_ENDIAN 4321 +# ifdef WORDS_BIGENDIAN +# define BYTE_ORDER BIG_ENDIAN +# else +# define BYTE_ORDER LITTLE_ENDIAN +# endif +# endif /* BYTE_ORDER */ # define SHA2_USE_INTTYPES_H #else /* RUBY */ #ifdef SHA2_USE_INTTYPES_H |