mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 21:28:11 +08:00
0022972: Eliminate macro definitions that has compiler-provided analogs (WNT and so on)
1) Macro definition WNT replaced by _WIN32 and _MSC_VER for platform and compiler detection accordingly. 2) Macro definition LIN replaced by __linux__ macro. 3) Macro definition DEB replaced by OCCT_DEBUG macro.
This commit is contained in:
@@ -31,7 +31,7 @@ static UnitsAPI_SystemUnits localSystem = UnitsAPI_SI;
|
||||
static UnitsAPI_SystemUnits currentSystem = UnitsAPI_DEFAULT;
|
||||
static OSD_Environment env1("CSF_UnitsLexicon");
|
||||
static OSD_Environment env2("CSF_UnitsDefinition");
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
static OSD_Environment env3("CSF_CurrentUnits");
|
||||
static OSD_Environment env4("CSF_MDTVCurrentUnits");
|
||||
#endif
|
||||
@@ -79,7 +79,7 @@ void UnitsAPI::CheckLoading (const UnitsAPI_SystemUnits aSystemUnits)
|
||||
case UnitsAPI_SI :
|
||||
currentSystem = UnitsAPI_SI;
|
||||
if( SICurrentUnits.IsNull() ) {
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
TCollection_AsciiString csfcurrent (env3.Value());
|
||||
if( csfcurrent.Length() > 0 )
|
||||
SICurrentUnits = new Resource_Manager(csfcurrent.ToCString());
|
||||
@@ -95,7 +95,7 @@ void UnitsAPI::CheckLoading (const UnitsAPI_SystemUnits aSystemUnits)
|
||||
case UnitsAPI_MDTV :
|
||||
currentSystem = UnitsAPI_MDTV;
|
||||
if( MDTVCurrentUnits.IsNull() ) {
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
TCollection_AsciiString csfmdtvcurrent (env4.Value());
|
||||
if( csfmdtvcurrent.Length() > 0 )
|
||||
MDTVCurrentUnits = new Resource_Manager(csfmdtvcurrent.ToCString());
|
||||
|
||||
Reference in New Issue
Block a user