#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
+#include "acconfig.h"
+#ifdef HAVE_MEMSET_S
+# define __STDC_WANT_LIB_EXT1__ 1
+#endif
#include <string.h>
#include <thread>
#ifndef _WIN32
}
int ceph_memzero_s(void *dest, size_t destsz, size_t count) {
-#ifdef __STDC_LIB_EXT1__
+#ifdef HAVE_MEMSET_S
return memset_s(dest, destsz, 0, count);
#elif defined(_WIN32)
SecureZeroMemory(dest, count);