Compare commits
No commits in common. "56b645db4701194bb0c0d6714cbfb0c4a86f4e02" and "9cd10865daf4aa21077d84df3b487fda067331ec" have entirely different histories.
56b645db47
...
9cd10865da
@ -5,11 +5,6 @@
|
||||
#ifdef _MSC_VER
|
||||
#define __bswap_16 _byteswap_ushort
|
||||
#define __bswap_32 _byteswap_ulong
|
||||
#elif __APPLE__
|
||||
#include <libkern/OSByteOrder.h>
|
||||
#define __bswap_16 OSSwapInt16
|
||||
#define __bswap_32 OSSwapInt32
|
||||
#define __bswap_64 OSSwapInt64
|
||||
#else
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
@ -166,4 +161,4 @@ void fill_random(unsigned char* buffer, int length){
|
||||
secRandom = rand(&rCtx);
|
||||
memcpy(&buffer[i], &secRandom, MIN(sizeof(UINT32), length-i));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user