diff --git a/src/Mod/Part/App/PropertyTopoShape.cpp b/src/Mod/Part/App/PropertyTopoShape.cpp index 9371d4e567..9eb4c5445f 100644 --- a/src/Mod/Part/App/PropertyTopoShape.cpp +++ b/src/Mod/Part/App/PropertyTopoShape.cpp @@ -39,11 +39,14 @@ # include # include # include +# include # include # include #endif +#if OCC_VERSION_HEX >= 0x060800 #include +#endif #include #include @@ -279,7 +282,11 @@ static Standard_Boolean BRepTools_Write(const TopoDS_Shape& Sh, const Standard_CString File) { ofstream os; +#if OCC_VERSION_HEX >= 0x060800 OSD_OpenStream(os, File, ios::out); +#else + os.open(File, ios::out); +#endif if (!os.rdbuf()->is_open()) return Standard_False; Standard_Boolean isGood = (os.good() && !os.eof());