aboutsummaryrefslogtreecommitdiff
path: root/src/support/cleanse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/cleanse.cpp')
-rw-r--r--src/support/cleanse.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/support/cleanse.cpp b/src/support/cleanse.cpp
index a8ddcd793f..4e370f1516 100644
--- a/src/support/cleanse.cpp
+++ b/src/support/cleanse.cpp
@@ -7,14 +7,14 @@
#include <cstring>
-#if defined(_MSC_VER)
-#include <Windows.h> // For SecureZeroMemory.
+#if defined(WIN32)
+#include <windows.h>
#endif
void memory_cleanse(void *ptr, size_t len)
{
-#if defined(_MSC_VER)
- /* SecureZeroMemory is guaranteed not to be optimized out by MSVC. */
+#if defined(WIN32)
+ /* SecureZeroMemory is guaranteed not to be optimized out. */
SecureZeroMemory(ptr, len);
#else
std::memset(ptr, 0, len);