summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-04 21:45:04 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-04 21:45:04 +0000
commit518ee466c969f557a66461999fce39c3d3eea352 (patch)
treec3b417a0a51764f1ed646b44928f4c34005368ea /test.cpp
parentb21162cf8e06f40baa1f58be6a8c17435cebc34d (diff)
downloadcryptopp-518ee466c969f557a66461999fce39c3d3eea352.tar.gz
compatibility fixes for MacOS X
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@6 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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;