diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-12-09 17:17:41 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-12-09 17:17:41 +0000 |
commit | d5a07646832901cfaceb36cfa6be032612b7118c (patch) | |
tree | ce45384f62c3aacef30f3524f74f6e0f444ba6f0 /fipstest.cpp | |
parent | 5f1af2c96edd4318d5589ea840d865cad58b6235 (diff) | |
download | cryptopp-git-d5a07646832901cfaceb36cfa6be032612b7118c.tar.gz |
cygwin workaround
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 58f561a2..109e592b 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; |