fix msvc build.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5059 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-05-01 23:09:06 +00:00
1 parent 0a4abb5c81
commit dcb493b1ea
2 files changed
+19 -1

No files matched your search

+5 -1
View File
@@ -49,6 +49,10 @@
# endif
#endif
#ifdef _MSC_VER
#define inline __inline
#endif
#include <string.h>
#include "sha1.h"
@@ -95,7 +99,7 @@ static const char rcsid[] =
static inline uint64_t _byteswap64(uint64_t x)
{
uint32_t a = x >> 32;
uint32_t a = (uint32_t)(x >> 32);
uint32_t b = (uint32_t) x;
return ((uint64_t) BYTESWAP(b) << 32) | (uint64_t) BYTESWAP(a);
}