X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fslapd-modules%2Fpasswd%2Fsha2%2Fsha2.h;h=6e5323595695d5e081afd6cc1b1af934717f4b3f;hb=dc2e2dbaa13f8117e97e626e07c45c792e87ddb2;hp=419cbd6ddc819af6315a66e595e69807a011e894;hpb=321b0fa93e6a8841cba23fac8663802d2d17a8c7;p=openldap diff --git a/contrib/slapd-modules/passwd/sha2/sha2.h b/contrib/slapd-modules/passwd/sha2/sha2.h index 419cbd6ddc..6e53235956 100644 --- a/contrib/slapd-modules/passwd/sha2/sha2.h +++ b/contrib/slapd-modules/passwd/sha2/sha2.h @@ -36,11 +36,30 @@ #ifndef __SHA2_H__ #define __SHA2_H__ +#include "portable.h" + +#ifdef HAVE_INTTYPES_H +# define SHA2_USE_INTTYPES_H 1 +#endif + +#ifndef LITTLE_ENDIAN +# define LITTLE_ENDIAN 1234 +#endif +#ifndef BIG_ENDIAN +# define BIG_ENDIAN 4321 +#endif +#ifndef BYTE_ORDER +# ifdef WORDS_BIGENDIAN +# define BYTE_ORDER BIG_ENDIAN +# else +# define BYTE_ORDER LITTLE_ENDIAN +# endif +#endif + #ifdef __cplusplus extern "C" { #endif - /* * Import u_intXX_t size_t type definitions from system headers. You * may need to change this, or define these things yourself in this