static os()
{
try {
// Environment.OSVersion not implemented in Rotor
OS_NAME= GetOSName();
}
catch {
OS_NAME= foreign.getbytes( "???" );
}
try {
// Environment.OSVersion not implemented in Rotor
OS_VERSION= GetOSVersion();
}
catch {
OS_VERSION= foreign.getbytes( "???" );
}
bool unix= false;
try
{
// Environment.OSVersion not implemented in Rotor
unix= IsUnix();
}
catch {
}
if (!unix)
{
/***** running on Win32 *****/
BGL_DEFAULT_A_OUT= foreign.getbytes( "a.exe" );
BGL_DEFAULT_A_BAT= foreign.getbytes( "a.bat" );
OS_CLASS= foreign.getbytes( "win32" );
SHARED_LIB_SUFFIX= foreign.getbytes( "dll" );
STATIC_LIB_SUFFIX= foreign.getbytes( "lib" );
}
else
{
/***** running on Unix *****/
BGL_DEFAULT_A_OUT= foreign.getbytes( "a.out" );
BGL_DEFAULT_A_BAT= foreign.getbytes( "a.out" );
OS_CLASS= foreign.getbytes( "unix" );
SHARED_LIB_SUFFIX= foreign.getbytes( "so" );
STATIC_LIB_SUFFIX= foreign.getbytes( "a" );
}
}