summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFotios Sioutis <sfotis@gmail.com>2011-11-18 15:17:56 +0200
committerDenis Barbier <bouzim@gmail.com>2011-11-19 19:30:42 +0100
commite26fdfda4b134f1d9053ef8d48a9b7eba0e0db57 (patch)
tree127e3faa9bac1573f1d80bd5e3ef136b77451074
parente165ab061b3fac26abb96b26bcb77025a2b33347 (diff)
downloadoce-e26fdfda4b134f1d9053ef8d48a9b7eba0e0db57.tar.gz
oce-e26fdfda4b134f1d9053ef8d48a9b7eba0e0db57.zip
Bcc needs two functions declared as global
This fix has been introduced again in oce in past, but lost due to upstream changes.Corrects bcc compilation issue.
-rw-r--r--src/BRepMesh/BRepMesh_CellFilter.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/BRepMesh/BRepMesh_CellFilter.hxx b/src/BRepMesh/BRepMesh_CellFilter.hxx
index ab0193d7..1edc138f 100644
--- a/src/BRepMesh/BRepMesh_CellFilter.hxx
+++ b/src/BRepMesh/BRepMesh_CellFilter.hxx
@@ -10,3 +10,11 @@
#include <BRepMesh_CircleInspector.hxx>
typedef NCollection_CellFilter<BRepMesh_CircleInspector> BRepMesh_CellFilter;
+
+#ifdef __BORLANDC__
+ // definition of global functions is needed for map
+ Standard_Integer HashCode (const NCollection_CellFilter<BRepMesh_CircleInspector>::Cell &aCell, const Standard_Integer theUpper)
+ { return aCell.HashCode(theUpper); }
+ Standard_Boolean IsEqual (const NCollection_CellFilter<BRepMesh_CircleInspector>::Cell &aCell1, const NCollection_CellFilter<BRepMesh_CircleInspector>::Cell &aCell2)
+ { return aCell1.IsEqual(aCell2); }
+#endif