add endian defines on MSVC

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3088 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-10-19 01:21:17 +00:00
parent 930fc4dee4
commit f64ae18ac6
3 changed files with 34 additions and 0 deletions

View File

@@ -54,7 +54,19 @@ A million repetitions of "a"
#include <stdio.h>
#include <string.h>
#ifdef _MSC_VER
#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN 1234
#endif
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 4321
#endif
#ifndef __BYTE_ORDER
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
#else
#include "config.h"
#endif
#include "sha1.h"
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))