fix compile on Linux

pull/2/head
weidai 2010-07-24 06:12:23 +00:00
parent 7adbf89681
commit 797192ea60
3 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,10 @@
#include "words.h"
#include <new>
#if defined(CRYPTOPP_MEMALIGN_AVAILABLE) || defined(CRYPTOPP_MM_MALLOC_AVAILABLE) || defined(QNX)
#include <malloc.h>
#endif
NAMESPACE_BEGIN(CryptoPP)
void xorbuf(byte *buf, const byte *mask, size_t count)

View File

@ -74,6 +74,7 @@ being unloaded from L1 cache, until that round is finished.
#include "cpu.h"
#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
#include <smmintrin.h>
#include <wmmintrin.h>
#endif

View File

@ -7,10 +7,6 @@
#include "misc.h"
#include <assert.h>
#if defined(CRYPTOPP_MEMALIGN_AVAILABLE) || defined(CRYPTOPP_MM_MALLOC_AVAILABLE) || defined(QNX)
#include <malloc.h>
#endif
NAMESPACE_BEGIN(CryptoPP)
// ************** secure memory allocation ***************