dect
/
asterisk
Archived
13
0
Fork 0

Pick the right location to endian.h based on OS in md5.c

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2570 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
citats 2004-03-26 08:37:51 +00:00
parent df7f211337
commit f23e53be88
1 changed files with 7 additions and 1 deletions

8
md5.c
View File

@ -1,6 +1,12 @@
/* MD5 checksum routines used for authentication. Not covered by GPL, but
in the public domain as per the copyright below */
#include <endian.h>
#if defined( __FreeBSD__ ) || defined( __OpenBSD__ )
# include <sys/endian.h>
#elif defined( BSD ) && ( BSD >= 199103 )
# include <machine/endian.h>
#else
# include <endian.h>
#endif
# if __BYTE_ORDER == __BIG_ENDIAN || BYTE_ORDER == BIG_ENDIAN
# define HIGHFIRST 1
# endif