mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Added BYTE_ORDER definition for win32 builds.
This commit is contained in:
parent
07b56e6a8c
commit
08d60f1876
1 changed files with 10 additions and 1 deletions
11
lib/sha-1.c
11
lib/sha-1.c
|
@ -35,6 +35,16 @@
|
|||
#include <sys/types.h>
|
||||
#ifdef WIN32
|
||||
|
||||
#ifndef BIG_ENDIAN
|
||||
#define BIG_ENDIAN 4321 /* to show byte order (taken from gcc) */
|
||||
#endif
|
||||
#ifndef LITTLE_ENDIAN
|
||||
#define LITTLE_ENDIAN 1234
|
||||
#endif
|
||||
#ifndef BYTE_ORDER
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
typedef unsigned char u_int8_t;
|
||||
typedef unsigned int u_int32_t;
|
||||
typedef unsigned __int64 u_int64_t;
|
||||
|
@ -317,4 +327,3 @@ SHA1(const unsigned char *d, size_t n, unsigned char *md)
|
|||
}
|
||||
|
||||
#endif /*unsupported*/
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue