1
0
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:
akz
2015-09-15 17:46:43 +03:00
committed by kgv
parent 28a73c1fe7
commit 57c28b6122
180 changed files with 370 additions and 411 deletions

View File

@@ -36,7 +36,7 @@
#include <GeomAbs_Shape.hxx>
#include <stdio.h>
#ifdef WNT
#ifdef _WIN32
Standard_IMPORT Draw_Viewer dout;
#endif

View File

@@ -39,7 +39,7 @@
#include <TColStd_Array2OfReal.hxx>
#include <Precision.hxx>
#include <stdio.h>
#ifdef WNT
#ifdef _WIN32
Standard_IMPORT Draw_Viewer dout;
#endif

View File

@@ -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);

View File

@@ -130,7 +130,7 @@
#include <GCPnts_UniformAbscissa.hxx>
#include <DBRep.hxx>
#ifdef WNT
#ifdef _WIN32
Standard_IMPORT Draw_Viewer dout;
#endif

View File

@@ -29,7 +29,7 @@
#include <TColgp_Array1OfPnt.hxx>
#include <TColgp_Array1OfPnt2d.hxx>
#ifdef WNT
#ifdef _WIN32
Standard_IMPORT Draw_Viewer dout;
#endif
//=======================================================================

View File

@@ -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

View File

@@ -27,7 +27,7 @@
#include <Draw_Marker3D.hxx>
#include <stdio.h>
#ifdef WNT
#ifdef _WIN32
Standard_IMPORT Draw_Viewer dout;
#endif