Merge pull request #521 from dgarske/improve_inline_misc

Change misc.c error to warning when trying to be compiled and inline enabled
This commit is contained in:
JacobBarthelmeh 2016-08-09 13:09:20 -06:00 committed by GitHub
commit fd9f8125e3
1 changed files with 6 additions and 2 deletions

View File

@ -46,8 +46,9 @@
/* Check for if compiling misc.c when not needed. */ /* Check for if compiling misc.c when not needed. */
#if !defined(WOLFSSL_MISC_INCLUDED) && !defined(NO_INLINE) #if !defined(WOLFSSL_MISC_INCLUDED) && !defined(NO_INLINE)
#error misc.c does not need to be compiled when not defined NO_INLINE #warning misc.c does not need to be compiled when using inline (NO_INLINE not defined)
#endif
#else
#ifdef INTEL_INTRINSICS #ifdef INTEL_INTRINSICS
@ -203,4 +204,7 @@ STATIC INLINE int ConstantCompare(const byte* a, const byte* b, int length)
#undef STATIC #undef STATIC
#endif /* !WOLFSSL_MISC_INCLUDED && !NO_INLINE */
#endif /* WOLF_CRYPT_MISC_C */ #endif /* WOLF_CRYPT_MISC_C */