1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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

@@ -21,36 +21,19 @@
//function : HashCode
//purpose :
//=======================================================================
//#ifndef WNT
//inline static Standard_Integer MAT2d_MapBiIntHasher::HashCode
//(const MAT2d_BiInt& Key1, const Standard_Integer upper)
//{
// return TColStd_MapIntegerHasher::HashCode(Key1.FirstIndex(),upper);
//}
//#else
inline Standard_Integer MAT2d_MapBiIntHasher::HashCode
(const MAT2d_BiInt& Key1, const Standard_Integer upper)
{
return TColStd_MapIntegerHasher::HashCode(Key1.FirstIndex(),upper);
}
//#endif
//=======================================================================
//function : IsEqual
//purpose :
//=======================================================================
//#ifndef WNT
//inline static Standard_Boolean MAT2d_MapBiIntHasher::IsEqual
// (const MAT2d_BiInt& Key1,
// const MAT2d_BiInt& Key2)
//{
// return (Key1 == Key2);
//}
//#else
inline Standard_Boolean MAT2d_MapBiIntHasher::IsEqual
(const MAT2d_BiInt& Key1,
const MAT2d_BiInt& Key2)
{
return (Key1 == Key2);
}
//#endif