mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03: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:
@@ -32,7 +32,7 @@
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
#include <OSD_Exception.hxx>
|
||||
#else
|
||||
#include <OSD_Signal.hxx>
|
||||
@@ -49,7 +49,7 @@ static void raisecheck (Handle(Interface_Check)& ach)
|
||||
sprintf (mess,"** Exception Raised during Check : %s **",
|
||||
afail->DynamicType()->Name());
|
||||
ach->AddFail(mess);
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
if (afail->IsKind(STANDARD_TYPE(OSD_Exception)))
|
||||
#else
|
||||
if (afail->IsKind(STANDARD_TYPE(OSD_Signal)))
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_TypeMismatch.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
#include <OSD_Exception.hxx>
|
||||
#else
|
||||
#include <OSD_Signal.hxx>
|
||||
@@ -385,7 +385,7 @@ void Interface_FileReaderTool::LoadModel
|
||||
num0 = thereader->FindNextRecord(num); //:g9 abv 28 May 98: tr8_as2_ug.stp - infinite cycle: (0);
|
||||
|
||||
Handle(Standard_Failure) afail = Standard_Failure::Caught();
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
if (afail.IsNull() || afail->IsKind(STANDARD_TYPE(OSD_Exception))) ierr = 2;
|
||||
#else
|
||||
if (afail.IsNull() || afail->IsKind(STANDARD_TYPE(OSD_Signal))) ierr = 2;
|
||||
|
Reference in New Issue
Block a user