summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.cpp b/test.cpp
index e5c87c9..dc430f2 100644
--- a/test.cpp
+++ b/test.cpp
@@ -26,7 +26,7 @@
#include <iostream>
#include <time.h>
-#if defined(_WIN32) || defined(__CYGWIN__)
+#ifdef CRYPTOPP_WIN32_AVAILABLE
#include <windows.h>
#endif
@@ -110,7 +110,7 @@ int main(int argc, char *argv[])
{
edcFilename = "edc.dat";
-#if defined(_WIN32) || defined(__CYGWIN__)
+#ifdef CRYPTOPP_WIN32_AVAILABLE
TCHAR filename[MAX_PATH];
GetModuleFileName(GetModuleHandle(NULL), filename, sizeof(filename));
executableName = filename;