forked from wolfSSL/wolfssl
Add support for C99 tools withoutstrings.h and add option to disable C99 checking.
This commit is contained in:
@ -332,8 +332,8 @@
|
||||
#elif defined(USE_WINDOWS_API) || defined(FREERTOS_TCP_WINSIM)
|
||||
#define XSTRNCASECMP(s1,s2,n) _strnicmp((s1),(s2),(n))
|
||||
#else
|
||||
#if (defined(HAVE_STRINGS_H) || defined(WOLF_C99)) && \
|
||||
!defined(WOLFSSL_SGX)
|
||||
#if defined(HAVE_STRINGS_H) && defined(WOLF_C99) && \
|
||||
!defined(WOLFSSL_SGX) && !defined(WOLFSSL_ARDUINO)
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#define XSTRNCASECMP(s1,s2,n) strncasecmp((s1),(s2),(n))
|
||||
|
@ -33,8 +33,9 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* detect C99 */
|
||||
#if !defined(WOLF_C99) && defined(__STDC_VERSION__)
|
||||
/* Detect if compiler supports C99. "NO_WOLF_C99" can be defined in
|
||||
* user_settings.h to disable checking for C99 support. */
|
||||
#if !defined(WOLF_C99) && defined(__STDC_VERSION__) && !defined(NO_WOLF_C99)
|
||||
#if __STDC_VERSION__ >= 199901L
|
||||
#define WOLF_C99
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user