summaryrefslogtreecommitdiff
path: root/fipstest.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-09 17:17:41 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-09 17:17:41 +0000
commitbbd05f8142921b590d6493ff37983fa687aa90e3 (patch)
treece45384f62c3aacef30f3524f74f6e0f444ba6f0 /fipstest.cpp
parent90933db7697d9e5ad832a43bd59565339fbbcf55 (diff)
downloadcryptopp-bbd05f8142921b590d6493ff37983fa687aa90e3.tar.gz
cygwin workaround
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@246 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'fipstest.cpp')
-rw-r--r--fipstest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/fipstest.cpp b/fipstest.cpp
index 58f561a..109e592 100644
--- a/fipstest.cpp
+++ b/fipstest.cpp
@@ -277,6 +277,7 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule
char moduleFilenameBuf[MAX_PATH] = "";
if (moduleFilename == NULL)
{
+#ifdef _MSC_VER // ifstream doesn't support wide filename on gcc 3.4.4 cygwin
wchar_t wideModuleFilename[MAX_PATH];
if (GetModuleFileNameW(s_hModule, wideModuleFilename, MAX_PATH) > 0)
{
@@ -284,6 +285,7 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule
h = GetModuleHandleW(wideModuleFilename);
}
else
+#endif
{
GetModuleFileNameA(s_hModule, moduleFilenameBuf, MAX_PATH);
moduleFilename = moduleFilenameBuf;