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:
@@ -36,7 +36,7 @@
|
||||
#include <GeomAbs_Shape.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
@@ -39,7 +39,7 @@
|
||||
#include <TColStd_Array2OfReal.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <stdio.h>
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
@@ -64,9 +64,8 @@
|
||||
#include <GC_MakeSegment.hxx>
|
||||
#include <GC_MakeArcOfCircle.hxx>
|
||||
|
||||
//#ifdef WNT
|
||||
#include <stdio.h>
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
Standard_IMPORT Draw_Color DrawTrSurf_CurveColor(const Draw_Color);
|
||||
|
@@ -130,7 +130,7 @@
|
||||
#include <GCPnts_UniformAbscissa.hxx>
|
||||
#include <DBRep.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
//=======================================================================
|
||||
|
@@ -61,9 +61,12 @@
|
||||
#include <DrawTrSurf_BezierSurface.hxx>
|
||||
#include <DrawTrSurf_BSplineSurface.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#include <stdio.h>
|
||||
//#define strcasecmp strcmp Already defined
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <Draw_Marker3D.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user