Merge pull request #14 from ejohnstown/misc-inline

Update misc inline code
pull/15/head
dgarske 2016-08-10 08:56:13 -07:00 committed by GitHub
commit 31b411bbed
1 changed files with 7 additions and 2 deletions

View File

@ -49,8 +49,10 @@
/* Check for if compiling misc.c when not needed. */
#if !defined(WOLFSSH_MISC_INCLUDED) && !defined(NO_INLINE)
#error misc.c does not need to be compiled when not defined NO_INLINE
#endif
#warning misc.c does not need to be compiled when using inline (NO_INLINE not defined)
#else /* !WOLFSSL_MISC_INCLUDED && !NO_INLINE */
#ifndef min
@ -105,4 +107,7 @@ STATIC INLINE int ConstantCompare(const uint8_t* a, const uint8_t* b,
#undef STATIC
#endif /* !WOLFSSL_MISC_INCLUDED && !NO_INLINE */
#endif /* WOLFSSH_MISC_C */