Oh, the joy of compilers pretending to support C99, but that actually don't

This commit is contained in:
Frank Denis
2017-11-26 00:11:56 +01:00
parent 7df2a1ae91
commit 06a523423a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -189,6 +189,7 @@ dnl Checks
AC_PROG_CC_C99
AM_PROG_AS
AC_USE_SYSTEM_EXTENSIONS
AC_C_VARARRAYS
AC_CHECK_DEFINE([__native_client__], [NATIVECLIENT="yes"], [])
+1 -1
View File
@@ -128,7 +128,7 @@ sodium_stackzero(const size_t len)
{
#ifdef HAVE_ALLOCA
sodium_memzero(alloca(len), len);
#elif __STDC_VERSION__ >= 199901L
#elif HAVE_C_VARARRAYS
unsigned char fodder[len];
sodium_memzero(fodder, len);
#endif