std::string CArchSystemWindows::getPlatformName() const { #ifdef _X86_ if(isWOW64()) return "x86 (WOW64)"; else return "x86"; #else #ifdef _AMD64_ return "x64"; #else return "Unknown"; #endif #endif }
static int setup_os_env( const char *watcom ) { char *buf; size_t len; int rc = 0; #ifndef _M_X64 DWORD version; version = GetVersion(); if( version < 0x80000000 && LOBYTE( LOWORD( version ) ) >= 5 && isWOW64() ) { #endif len = strlen( watcom ); buf = malloc( len + 16 ); memcpy( buf, watcom, len ); strcpy( buf + len, "\\binnt\\help;" ); if( add_path( "WHTMLHELP", buf ) ) { rc = -6; } free( buf ); #ifndef _M_X64 } #endif return( rc ); }