1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0032432: Inspectors - problems with tools test group

Adding __APPLE_ definition for libraries
This commit is contained in:
Natalia Ermolaeva 2021-06-16 09:32:52 +03:00 committed by bugmaster
parent 50174691dc
commit 1aee888374
2 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,9 @@ TInspectorAPI_Communicator* TInspectorAPI_Communicator::LoadPluginLibrary
TCollection_AsciiString aPluginLibraryName = thePluginName;
#ifdef _WIN32
aPluginLibraryName += ".dll";
#elif __APPLE__
aPluginLibraryName.Prepend ("lib");
aPluginLibraryName += ".dylib";
#else
aPluginLibraryName.Prepend ("lib");
aPluginLibraryName += ".so";

View File

@ -438,7 +438,7 @@ bool VInspector_Window::OpenFile(const TCollection_AsciiString& theFileName)
Handle(AIS_Shape) aPresentation = new AIS_Shape (aShape);
aPresentation->Attributes()->SetAutoTriangulation (Standard_False);
View_Displayer* aDisplayer = myViewWindow->Displayer();
View_Displayer* aDisplayer = displayer();
aDisplayer->DisplayPresentation (aPresentation);
aContext->UpdateCurrentViewer();