mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -33,7 +33,7 @@
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <VrmlData_ArrayVec3d.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <Precision.hxx>
|
||||
#include <gp_Ax1.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include <Poly.hxx>
|
||||
#include <TShort_HArray1OfShortReal.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#include <VrmlData_Color.hxx>
|
||||
#include <VrmlData_Coordinate.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <VrmlData_Scene.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <VrmlData_TextureTransform.hxx>
|
||||
#include <VrmlData_Texture.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
|
@@ -46,7 +46,7 @@
|
||||
#include <VrmlData_WorldInfo.hxx>
|
||||
#include <VrmlData_Geometry.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
@@ -177,7 +177,7 @@ void VrmlData_Scene::SetVrmlDir (const TCollection_ExtendedString& theDir)
|
||||
const Standard_ExtCharacter aTerminator = aDir.Value(aDir.Length());
|
||||
if (aTerminator != Standard_ExtCharacter('\\') &&
|
||||
aTerminator != Standard_ExtCharacter('/'))
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
aDir += TCollection_ExtendedString ("\\");
|
||||
#else
|
||||
aDir += TCollection_ExtendedString ("/");
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include <VrmlData_Scene.hxx>
|
||||
#include <VrmlData_InBuffer.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user