Do not check for __STDC_VERSION__ any more to use memset_s()

This commit is contained in:
Frank Denis 2014-05-09 13:24:36 -07:00
parent 90d270f7c5
commit 5ee582509e

View File

@ -24,7 +24,7 @@ sodium_memzero(void * const pnt, const size_t len)
{
#ifdef HAVE_SECUREZEROMEMORY
SecureZeroMemory(pnt, len);
#elif defined(HAVE_MEMSET_S) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
#elif defined(HAVE_MEMSET_S)
if (memset_s(pnt, (rsize_t) len, 0, (rsize_t) len) != 0) {
abort();
}