Allow static memory option when not using fast math or not using

slow math for anything.
This commit is contained in:
John Safranek 2017-01-23 16:38:29 -08:00
parent 52bc606ef9
commit 13d0908b09

View File

@ -1463,7 +1463,7 @@ static char *fgets(char *buff, int sz, FILE *fp)
#if defined(HAVE_IO_POOL) || defined(XMALLOC_USER) || defined(NO_WOLFSSL_MEMORY)
#error static memory cannot be used with HAVE_IO_POOL, XMALLOC_USER or NO_WOLFSSL_MEMORY
#endif
#ifndef USE_FAST_MATH
#if !defined(USE_FAST_MATH) && !defined(NO_BIG_INT)
#error static memory requires fast math please define USE_FAST_MATH
#endif
#ifdef WOLFSSL_SMALL_STACK