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:
@@ -25,11 +25,7 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
//#ifndef WNT
|
||||
//inline static Standard_Integer TDF_LabelMapHasher::HashCode
|
||||
//#else
|
||||
inline Standard_Integer TDF_LabelMapHasher::HashCode
|
||||
//#endif
|
||||
inline Standard_Integer TDF_LabelMapHasher::HashCode
|
||||
(const TDF_Label& aLab, const Standard_Integer Upper)
|
||||
{ return 1 + ( (int) (labs((long int) aLab.myLabelNode) % Upper) ); }
|
||||
|
||||
@@ -39,10 +35,6 @@ inline Standard_Integer TDF_LabelMapHasher::HashCode
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
//#ifndef WNT
|
||||
//inline static Standard_Boolean TDF_LabelMapHasher::IsEqual
|
||||
//#else
|
||||
inline Standard_Boolean TDF_LabelMapHasher::IsEqual
|
||||
//#endif
|
||||
inline Standard_Boolean TDF_LabelMapHasher::IsEqual
|
||||
(const TDF_Label& aLab1,const TDF_Label& aLab2)
|
||||
{ return aLab1.IsEqual(aLab2); }
|
||||
|
Reference in New Issue
Block a user