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