Oh, the joy of compilers pretending to support C99, but that actually don't
This commit is contained in:
parent
7df2a1ae91
commit
06a523423a
@ -189,6 +189,7 @@ dnl Checks
|
|||||||
AC_PROG_CC_C99
|
AC_PROG_CC_C99
|
||||||
AM_PROG_AS
|
AM_PROG_AS
|
||||||
AC_USE_SYSTEM_EXTENSIONS
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
AC_C_VARARRAYS
|
||||||
|
|
||||||
AC_CHECK_DEFINE([__native_client__], [NATIVECLIENT="yes"], [])
|
AC_CHECK_DEFINE([__native_client__], [NATIVECLIENT="yes"], [])
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ sodium_stackzero(const size_t len)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_ALLOCA
|
#ifdef HAVE_ALLOCA
|
||||||
sodium_memzero(alloca(len), len);
|
sodium_memzero(alloca(len), len);
|
||||||
#elif __STDC_VERSION__ >= 199901L
|
#elif HAVE_C_VARARRAYS
|
||||||
unsigned char fodder[len];
|
unsigned char fodder[len];
|
||||||
sodium_memzero(fodder, len);
|
sodium_memzero(fodder, len);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user