New Makefile structure; added compatibility with Windows + Visual C + nmake.
This commit is contained in:
parent
2f454aad57
commit
3f00688b9d
29 changed files with 2240 additions and 1069 deletions
11
src/inner.h
11
src/inner.h
|
|
@ -31,6 +31,15 @@
|
|||
#include "config.h"
|
||||
#include "bearssl.h"
|
||||
|
||||
/*
|
||||
* On MSVC, disable the warning about applying unary minus on an
|
||||
* unsigned type: it is standard, we do it all the time, and for
|
||||
* good reasons.
|
||||
*/
|
||||
#if _MSC_VER
|
||||
#pragma warning( disable : 4146 )
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Maximum size for a RSA modulus (in bits). Allocated stack buffers
|
||||
* depend on that size, so this value should be kept small. Currently,
|
||||
|
|
@ -300,7 +309,7 @@ static inline void
|
|||
br_multihash_copyimpl(br_multihash_context *dst,
|
||||
const br_multihash_context *src)
|
||||
{
|
||||
memcpy(dst->impl, src->impl, sizeof src->impl);
|
||||
memcpy((void *)dst->impl, src->impl, sizeof src->impl);
|
||||
}
|
||||
|
||||
/* ==================================================================== */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue