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:
@@ -44,7 +44,7 @@
|
||||
#include <IntRes2d_IntersectionPoint.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
@@ -60,8 +60,11 @@
|
||||
#include <AppDef_Array1OfMultiPointConstraint.hxx>
|
||||
#include <math_Vector.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
@@ -108,7 +108,7 @@
|
||||
#include <Approx_CurvilinearParameter.hxx>
|
||||
#include <Approx_CurveOnSurface.hxx>
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#include <Geom_BoundedCurve.hxx>
|
||||
#include <Geom_BoundedSurface.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#include <stdio.h>
|
||||
//#define strcasecmp strcmp Already defined
|
||||
#endif
|
||||
|
@@ -82,10 +82,8 @@
|
||||
#include <DBRep.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
|
||||
//#ifdef WNT
|
||||
#include <stdio.h>
|
||||
#ifdef _WIN32
|
||||
//#define strcasecmp strcmp Already defined
|
||||
Standard_IMPORT Draw_Viewer dout;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user