diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-12-09 17:17:41 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-12-09 17:17:41 +0000 |
commit | bbd05f8142921b590d6493ff37983fa687aa90e3 (patch) | |
tree | ce45384f62c3aacef30f3524f74f6e0f444ba6f0 /fipstest.cpp | |
parent | 90933db7697d9e5ad832a43bd59565339fbbcf55 (diff) | |
download | cryptopp-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.cpp | 2 |
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; |