diff options
Diffstat (limited to 'CPP/7zip/Archive/DllExports2.cpp')
-rwxr-xr-x | CPP/7zip/Archive/DllExports2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/DllExports2.cpp b/CPP/7zip/Archive/DllExports2.cpp index cdf00346..216afdb1 100755 --- a/CPP/7zip/Archive/DllExports2.cpp +++ b/CPP/7zip/Archive/DllExports2.cpp @@ -19,6 +19,7 @@ extern "C" HINSTANCE g_hInstance; #ifndef _UNICODE +#ifdef _WIN32 bool g_IsNT = false; static bool IsItWindowsNT() { @@ -29,6 +30,7 @@ static bool IsItWindowsNT() return (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT); } #endif +#endif extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/) @@ -37,8 +39,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/) { g_hInstance = hInstance; #ifndef _UNICODE + #ifdef _WIN32 g_IsNT = IsItWindowsNT(); #endif + #endif #if defined(_WIN32) && defined(_7ZIP_LARGE_PAGES) SetLargePageSize(); #endif |